1gnutls_protocol_set_priority(3) gnutls gnutls_protocol_set_priority(3)
2
3
4
6 gnutls_protocol_set_priority - Sets the priority on the protocol ver‐
7 sions supported by gnutls.
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_protocol_set_priority(gnutls_session_t session, const int *
13 list);
14
16 gnutls_session_t session
17 is a gnutls_session_t structure.
18
19 const int * list
20 is a 0 terminated list of gnutls_protocol_t elements.
21
23 Sets the priority on the protocol versions supported by gnutls. This
24 function actually enables or disables protocols. Newer protocol ver‐
25 sions always have highest priority.
26
28 GNUTLS_E_SUCCESS on success, or an error code.
29
31 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
32 http://www.gnu.org/software/gnutls/ General help using GNU software:
33 http://www.gnu.org/gethelp/
34
36 Copyright © 2008 Free Software Foundation.
37 Copying and distribution of this file, with or without modification,
38 are permitted in any medium without royalty provided the copyright
39 notice and this notice are preserved.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 2.8.6 gnutls_protocol_set_priority(3)