5 DH_new, DH_free - allocate and free DH objects
9 #include <openssl/dh.h>
17 DH_new() allocates and initializes a B<DH> structure.
19 DH_free() frees the B<DH> structure and its components. The values are
20 erased before the memory is returned to the system.
21 If B<dh> is NULL nothing is done.
25 If the allocation fails, DH_new() returns B<NULL> and sets an error
26 code that can be obtained by L<ERR_get_error(3)|ERR_get_error(3)>. Otherwise it returns
27 a pointer to the newly allocated structure.
29 DH_free() returns no value.
33 L<dh(3)|dh(3)>, L<ERR_get_error(3)|ERR_get_error(3)>,
34 L<DH_generate_parameters(3)|DH_generate_parameters(3)>,
35 L<DH_generate_key(3)|DH_generate_key(3)>
39 DH_new() and DH_free() are available in all versions of SSLeay and OpenSSL.