DSA_dup_DH(3)DSA_dup_DH(3)NAMEDSA_dup_DH - Create a DH structure out of DSA structure
SYNOPSIS
#include <openssl/dsa.h>
DH * DSA_dup_DH(
DSA *r );
DESCRIPTION
The DSA_dup_DH() function duplicates DSA parameters/keys as DH parameā
ters/keys. The q is lost during that conversion, but the resulting DH
parameters contain its length.
NOTES
Be careful to avoid small subgroup attacks when using this.
RETURN VALUE
The DSA_dup_DH() function returns the new DH structure, and NULL on
error. The error codes can be obtained from ERR_get_error().
HISTORY
The DSA_dup_DH() function was added in OpenSSL 0.9.4.
SEE ALSO
Functions: dh(3), dsa(3), err(3)DSA_dup_DH(3)