OpenSSL DH_new(3openssl)
NNNNAAAAMMMMEEEEDH_new, DH_free - allocate and free DH objects
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS#include
DH* DH_new(void);
void DH_free(DH *dh);
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNDH_new() allocates and initializes a DDDDHHHH structure.
DH_free() frees the DDDDHHHH structure and its components. The
values are erased before the memory is returned to the system. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSSIf the allocation fails, DH_new() returns NNNNUUUULLLLLLLL and sets an
error code that can be obtained by ERR_get_error(3).
Otherwise it returns a pointer to the newly allocated structure.DH_free() returns no value.
SSSSEEEEEEEE AAAALLLLSSSSOOOOdh(3), ERR_get_error(3), DH_generate_parameters(3),
DH_generate_key(3)
HHHHIIIISSSSTTTTOOOORRRRYYYYDH_new() and DH_free() are available in all versions of
SSLeay and OpenSSL.25/Sep/2002 Last change: 0.9.8o 1