libressl-d2i_DHparams3
Pkcs#3 dh parameter functions
Usage
Crypto Library (libcrypto, -lcrypto)
#include <openssl/dh.h>
DH *
d2i_DHparams(DH **a, unsigned char **pp, long length);
int
i2d_DHparams(DH *a, unsigned char **pp);
Overview
These functions decode and encode PKCS#3 DH parameters using the DHparameter structure described in PKCS#3. They otherwise behave in a way similar to d2i_X509(3) and i2d_X509(3).
Return values
d2i_DHparams() returns a DH object or NULL if an error occurs.
i2d_DHparams() returns the number of bytes successfully encoded or a value <= 0 if an error occurs.