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       Mark the previous system wide setting that marked  version  as  enabled
23       or  disabled.  This only has effect when the version is enabled through
24       the allowlisting mode in the configuration file, or when the setting is
25       modified with a prior call to this function.
26
27       This  function  must  be  called  prior to any session priority setting
28       functions; otherwise the behavior is undefined.
29

RETURNS

31       0 on success or negative error code otherwise.
32

SINCE

34       3.7.3
35

REPORTING BUGS

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

SEE ALSO

48       The full documentation for gnutls is maintained as  a  Texinfo  manual.
49       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.7.6      gnutls_protocol_set_enabled(3)
Impressum