159191Skris=pod 259191Skris 359191Skris=head1 NAME 459191Skris 559191SkrisDSA_dup_DH - create a DH structure out of DSA structure 659191Skris 759191Skris=head1 SYNOPSIS 859191Skris 959191Skris #include <openssl/dsa.h> 1059191Skris 11109998Smarkm DH * DSA_dup_DH(const DSA *r); 1259191Skris 1359191Skris=head1 DESCRIPTION 1459191Skris 1559191SkrisDSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q 1659191Skrisis lost during that conversion, but the resulting DH parameters 1759191Skriscontain its length. 1859191Skris 1959191Skris=head1 RETURN VALUE 2059191Skris 2159191SkrisDSA_dup_DH() returns the new B<DH> structure, and NULL on error. The 2259191Skriserror codes can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>. 2359191Skris 2459191Skris=head1 NOTE 2559191Skris 2659191SkrisBe careful to avoid small subgroup attacks when using this. 2759191Skris 2859191Skris=head1 SEE ALSO 2959191Skris 30109998SmarkmL<dh(3)|dh(3)>, L<dsa(3)|dsa(3)>, L<ERR_get_error(3)|ERR_get_error(3)> 3159191Skris 3259191Skris=head1 HISTORY 3359191Skris 3459191SkrisDSA_dup_DH() was added in OpenSSL 0.9.4. 3559191Skris 3659191Skris=cut 37