d2i_DHparams.3ssl - Man Page

PKCS#3 DH parameter functions


 #include <openssl/dh.h>

 DH *d2i_DHparams(DH **a, const unsigned char **pp, long length);
 int i2d_DHparams(DH *a, unsigned char **pp);


These functions decode and encode PKCS#3 DH parameters using the DHparameter structure described in PKCS#3.

Otherwise these behave in a similar way to d2i_X509() and i2d_X509() described in the d2i_X509(3) manual page.

Return Values

d2i_DHparams() returns a valid DH structure or NULL if an error occurred.

i2d_DHparams() returns the length of encoded data on success or a value which is less than or equal to 0 on error.

See Also


Referenced By

The man page i2d_DHparams.3ssl(3) is an alias of d2i_DHparams.3ssl(3).

2021-09-20 1.1.1l OpenSSL