DH_new, DH_free - Allocate and free DH objects
#include <openssl/dh.h>
DH* DH_new(
void ); void DH_free(
DH *dh );
The DH_new() function allocates and initializes a DH
structure.
The DH_free() function frees the DH structure and its components.
The values are erased before the memory is
returned to the system.
If the allocation fails, the DH_new() function returns
NULL and sets an error code that can be obtained from
ERR_get_error(). Otherwise it returns a pointer to the
newly allocated structure.
The DH_free() function returns no value.
The DH_new() and DH_free() functions are available in all
versions of SSLeay and OpenSSL.
Functions: dh(3), err(3), DH_generate_parameters(3),
DH_generate_key(3)
DH_new(3)
[ Back ] |