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

NAME

6       DH_new_by_nid, DH_get_nid - create or get DH named parameters
7

SYNOPSIS

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

DESCRIPTION

19       DH_new_by_nid() creates and returns a DH structure containing named
20       parameters nid. Currently nid must be NID_ffdhe2048, NID_ffdhe3072,
21       NID_ffdhe4096, NID_ffdhe6144, NID_ffdhe8192, NID_modp_1536,
22       NID_modp_2048, NID_modp_3072, NID_modp_4096, NID_modp_6144 or
23       NID_modp_8192.
24
25       DH_get_nid() determines if the parameters contained in dh match any
26       named safe prime group. It returns the NID corresponding to the
27       matching parameters or NID_undef if there is no match.  This function
28       is deprecated.
29

RETURN VALUES

31       DH_new_by_nid() returns a set of DH parameters or NULL if an error
32       occurred.
33
34       DH_get_nid() returns the NID of the matching set of parameters for p
35       and g and optionally q, otherwise it returns NID_undef if there is no
36       match.
37

HISTORY

39       The DH_get_nid() function was deprecated in OpenSSL 3.0.
40
42       Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
43
44       Licensed under the Apache License 2.0 (the "License").  You may not use
45       this file except in compliance with the License.  You can obtain a copy
46       in the file LICENSE in the source distribution or at
47       <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5                             2022-07-05              DH_NEW_BY_NID(3ossl)
Impressum