1gnutls_psk_set_server_known_dh_paramsg(n3ug)tnlustls_psk_set_server_known_dh_params(3)
2
3
4
6 gnutls_psk_set_server_known_dh_params - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_psk_set_server_known_dh_params(gnutls_psk_server_creden‐
12 tials_t res, gnutls_sec_param_t sec_param);
13
15 gnutls_psk_server_credentials_t res
16 is a gnutls_psk_server_credentials_t type
17
18 gnutls_sec_param_t sec_param
19 is an option of the gnutls_sec_param_t enumeration
20
22 This function will set the Diffie-Hellman parameters for a PSK server
23 to use. These parameters will be used in Ephemeral Diffie-Hellman ci‐
24 pher suites and will be selected from the FFDHE set of RFC7919 accord‐
25 ing to the security level provided.
26
28 This function is unnecessary and discouraged on GnuTLS 3.6.0 or later.
29 Since 3.6.0, DH parameters are negotiated following RFC7919.
30
32 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
33 ror value.
34
36 3.5.6
37
39 Report bugs to <bugs@gnutls.org>.
40 Home page: https://www.gnutls.org
41
42
44 Copyright © 2001- Free Software Foundation, Inc., and others.
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright no‐
47 tice and this notice are preserved.
48
50 The full documentation for gnutls is maintained as a Texinfo manual.
51 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
52 visit
53
54 https://www.gnutls.org/manual/
55
56gnutls 3.g7n.u2tls_psk_set_server_known_dh_params(3)