1gnutls_protocol_set_enabled(3)      gnutls      gnutls_protocol_set_enabled(3)
2
3
4

NAME

6       gnutls_protocol_set_enabled - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_protocol_set_enabled(gnutls_protocol_t version, unsigned int
12       enabled);
13

ARGUMENTS

15       gnutls_protocol_t version
16                   is a (gnutls) version number
17
18       unsigned int enabled
19                   whether to enable the protocol
20

DESCRIPTION

22       Control the previous system-wide setting that marked   version  as  en‐
23       abled or disabled.  Calling this function is allowed only if allowlist‐
24       ing mode is set in the configuration file, and only if the  system-wide
25       TLS  priority  string has not been initialized yet.  The intended usage
26       is to provide applications with a way to  expressly  deviate  from  the
27       distribution  or  site  defaults inherited from the configuration file.
28       The modification is composable  with  further  modifications  performed
29       through the priority string mechanism.
30
31       This  function  is  not thread-safe and is intended to be called in the
32       main thread at the beginning of the process execution.
33

RETURNS

35       0 on success or negative error code otherwise.
36

SINCE

38       3.7.3
39

REPORTING BUGS

41       Report bugs to <bugs@gnutls.org>.
42       Home page: https://www.gnutls.org
43
44
46       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
47       Copying and distribution of this file, with  or  without  modification,
48       are  permitted in any medium without royalty provided the copyright no‐
49       tice and this notice are preserved.
50

SEE ALSO

52       The full documentation for gnutls is maintained as  a  Texinfo  manual.
53       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
54       visit
55
56       https://www.gnutls.org/manual/
57
58gnutls                               3.8.2      gnutls_protocol_set_enabled(3)
Impressum