DH_new(3) — Subroutines
NAME
DH_new, DH_free − Allocate and free DH objects
SYNOPSIS
#include <openssl/dh.h>
DH∗ DH_new(
void ); void DH_free(
DH ∗dh );
DESCRIPTION
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.
RETURN VALUES
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.
HISTORY
The DH_new() and DH_free() functions are available in all versions of SSLeay and OpenSSL.
SEE ALSO
Functions: dh(3), err(3), DH_generate_parameters(3), DH_generate_key(3)