Debian Codegraph @

doc/functions/gnutls_ecc_curve_set_enabled

raw
1
2
3
4
5 @deftypefun {int} {gnutls_ecc_curve_set_enabled} (gnutls_ecc_curve_t @var{curve}, unsigned int @var{enabled})
6 @var{curve}: is an ECC curve
7
8 @var{enabled}: whether to enable the curve
9
10 Modify the previous system wide setting that marked @code{curve} as
11 enabled or disabled. Calling this function is allowed
12 only if allowlisting mode is set in the configuration file,
13 and only if the system-wide TLS priority string
14 has not been initialized yet.
15 The intended usage is to provide applications with a way
16 to expressly deviate from the distribution or site defaults
17 inherited from the configuration file.
18 The modification is composable with further modifications
19 performed through the priority string mechanism.
20
21 This function is not thread-safe and is intended to be called
22 in the main thread at the beginning of the process execution.
23
24 @strong{Returns:} 0 on success or negative error code otherwise.
25
26 @strong{Since:} 3.7.3
27 @end deftypefun