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.
20

RETURN VALUES

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

SEE ALSO

29       dh(3), ERR_get_error(3), DH_generate_parameters(3), DH_generate_key(3)
30

HISTORY

32       DH_new() and DH_free() are available in all versions of SSLeay and
33       OpenSSL.
34
35
36
371.0.2k                            2017-01-26                         DH_new(3)
Impressum