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

NAME

6       DH_new, DH_free - allocate and free DH objects
7

SYNOPSIS

9        #include <openssl/dh.h>
10
11       The following functions have been deprecated since OpenSSL 3.0, and can
12       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
13       version value, see openssl_user_macros(7):
14
15        DH* DH_new(void);
16
17        void DH_free(DH *dh);
18

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

34       DH_new(3), ERR_get_error(3), DH_generate_parameters(3),
35       DH_generate_key(3), EVP_PKEY-DH(7)
36

HISTORY

38       All of these functions were deprecated in OpenSSL 3.0.
39
40       For replacement see EVP_PKEY-DH(7).
41
43       Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
44
45       Licensed under the Apache License 2.0 (the "License").  You may not use
46       this file except in compliance with the License.  You can obtain a copy
47       in the file LICENSE in the source distribution or at
48       <https://www.openssl.org/source/license.html>.
49
50
51
523.1.1                             2023-08-31                     DH_NEW(3ossl)
Impressum