1*e71b7053SJung-uk Kim=pod 2*e71b7053SJung-uk Kim 3*e71b7053SJung-uk Kim=head1 NAME 4*e71b7053SJung-uk Kim 5*e71b7053SJung-uk KimDH_new, DH_free - allocate and free DH objects 6*e71b7053SJung-uk Kim 7*e71b7053SJung-uk Kim=head1 SYNOPSIS 8*e71b7053SJung-uk Kim 9*e71b7053SJung-uk Kim #include <openssl/dh.h> 10*e71b7053SJung-uk Kim 11*e71b7053SJung-uk Kim DH* DH_new(void); 12*e71b7053SJung-uk Kim 13*e71b7053SJung-uk Kim void DH_free(DH *dh); 14*e71b7053SJung-uk Kim 15*e71b7053SJung-uk Kim=head1 DESCRIPTION 16*e71b7053SJung-uk Kim 17*e71b7053SJung-uk KimDH_new() allocates and initializes a B<DH> structure. 18*e71b7053SJung-uk Kim 19*e71b7053SJung-uk KimDH_free() frees the B<DH> structure and its components. The values are 20*e71b7053SJung-uk Kimerased before the memory is returned to the system. 21*e71b7053SJung-uk KimIf B<dh> is NULL nothing is done. 22*e71b7053SJung-uk Kim 23*e71b7053SJung-uk Kim=head1 RETURN VALUES 24*e71b7053SJung-uk Kim 25*e71b7053SJung-uk KimIf the allocation fails, DH_new() returns B<NULL> and sets an error 26*e71b7053SJung-uk Kimcode that can be obtained by L<ERR_get_error(3)>. Otherwise it returns 27*e71b7053SJung-uk Kima pointer to the newly allocated structure. 28*e71b7053SJung-uk Kim 29*e71b7053SJung-uk KimDH_free() returns no value. 30*e71b7053SJung-uk Kim 31*e71b7053SJung-uk Kim=head1 SEE ALSO 32*e71b7053SJung-uk Kim 33*e71b7053SJung-uk KimL<DH_new(3)>, L<ERR_get_error(3)>, 34*e71b7053SJung-uk KimL<DH_generate_parameters(3)>, 35*e71b7053SJung-uk KimL<DH_generate_key(3)> 36*e71b7053SJung-uk Kim 37*e71b7053SJung-uk Kim=head1 COPYRIGHT 38*e71b7053SJung-uk Kim 39*e71b7053SJung-uk KimCopyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. 40*e71b7053SJung-uk Kim 41*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License"). You may not use 42*e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 43*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 44*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 45*e71b7053SJung-uk Kim 46*e71b7053SJung-uk Kim=cut 47