DSA_dup_DH(3) OpenSSL DSA_dup_DH(3) NNAAMMEE DSA_dup_DH - create a DH structure out of DSA structure SSYYNNOOPPSSIISS #include DH * DSA_dup_DH(const DSA *r); DDEESSCCRRIIPPTTIIOONN _D_S_A___d_u_p___D_H_(_) duplicates DSA parameters/keys as DH parameters/keys. q is lost during that conversion, but the resulting DH parameters contain its length. RREETTUURRNN VVAALLUUEE _D_S_A___d_u_p___D_H_(_) returns the new DDHH structure, and NULL on error. The error codes can be obtained by _E_R_R___g_e_t___e_r_r_o_r(3). NNOOTTEE Be careful to avoid small subgroup attacks when using this. SSEEEE AALLSSOO _d_h(3), _d_s_a(3), _E_R_R___g_e_t___e_r_r_o_r(3) HHIISSTTOORRYY _D_S_A___d_u_p___D_H_(_) was added in OpenSSL 0.9.4. 1.0.1u 2016-09-22 DSA_dup_DH(3)