1gnutls_compression_set_priority(3) gnutls gnutls_compression_set_priority(3)
2
3
4
6 gnutls_compression_set_priority - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_compression_set_priority(gnutls_session_t session, const int
12 * list);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 const int * list
19 is a 0 terminated list of gnutls_compression_method_t ele‐
20 ments.
21
23 Sets the priority on the compression algorithms supported by gnutls.
24 Priority is higher for elements specified before others. After speci‐
25 fying the algorithms you want, you must append a 0. Note that the pri‐
26 ority is set on the client. The server does not use the algorithm's
27 priority except for disabling algorithms that were not specified.
28
29 TLS 1.0 does not define any compression algorithms except NULL. Other
30 compression algorithms are to be considered as gnutls extensions.
31
33 GNUTLS_E_SUCCESS on success, or an error code.
34
36 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
37 http://www.gnu.org/software/gnutls/ General help using GNU software:
38 http://www.gnu.org/gethelp/
39
41 Copyright © 2008 Free Software Foundation.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls 2.12.6.1 gnutls_compression_set_priority(3)