1DH_NEW(3)                           OpenSSL                          DH_NEW(3)
2
3
4

NAME

6       DH_new, DH_free - allocate and free DH objects
7

SYNOPSIS

9        #include <openssl/dh.h>
10
11        DH* DH_new(void);
12
13        void DH_free(DH *dh);
14

DESCRIPTION

16       DH_new() allocates and initializes a DH structure.
17
18       DH_free() frees the DH structure and its components. The values are
19       erased before the memory is returned to the system.  If dh is NULL
20       nothing is done.
21

RETURN VALUES

23       If the allocation fails, DH_new() returns NULL and sets an error code
24       that can be obtained by ERR_get_error(3). Otherwise it returns a
25       pointer to the newly allocated structure.
26
27       DH_free() returns no value.
28

SEE ALSO

30       DH_new(3), ERR_get_error(3), DH_generate_parameters(3),
31       DH_generate_key(3)
32
34       Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
35
36       Licensed under the OpenSSL license (the "License").  You may not use
37       this file except in compliance with the License.  You can obtain a copy
38       in the file LICENSE in the source distribution or at
39       <https://www.openssl.org/source/license.html>.
40
41
42
431.1.1c                            2019-05-28                         DH_NEW(3)
Impressum