1gnutls_compress_certificate_set_methoggdnnsuu(tt3ll)ss_compress_certificate_set_methods(3)
2
3
4

NAME

6       gnutls_compress_certificate_set_methods - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_compress_certificate_set_methods(gnutls_session_t  session,
12       const gnutls_compression_method_t * methods, size_t methods_len);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       const gnutls_compression_method_t * methods
19                   is a list of supported compression methods.
20
21       size_t methods_len
22                   number of compression methods in  methods
23

DESCRIPTION

25       This function sets the supported compression  methods  for  certificate
26       compression  for  the  given session. The list of supported compression
27       methods will be used for a) requesting the compression of  peer's  cer‐
28       tificate  and b) selecting the method to compress the local certificate
29       before sending it to the peer.  The order of compression methods inside
30       the  list  does  matter  as the method that appears earlier in the list
31       will be preffered before the later ones.  Note that even if you set the
32       list  of  supported  compression  methods, the compression might not be
33       used if the peer does not support any of your chosen compression  meth‐
34       ods.
35
36       The  list of supported compression methods must meet the following cri‐
37       teria: Argument  methods must be an array of valid compression  methods
38       of type gnutls_compression_method_t. Argument  methods_len must contain
39       the number of compression methods stored in the  methods array and must
40       be  within  range  <1,  127>.   The  length  constraints are defined by
41       MIN_COMPRESS_CERTIFICATE_METHODS  and  MAX_COMPRESS_CERTIFICATE_METHODS
42       macros located in the header file compress_certificate.h.
43
44       If  either  methods or  methods_len is equal to 0, current list of sup‐
45       ported compression methods will be unset.
46

RETURNS

48       GNUTLS_E_SUCCESS on success, otherwise a negative error code.
49
50       Since 3.7.4
51

REPORTING BUGS

53       Report bugs to <bugs@gnutls.org>.
54       Home page: https://www.gnutls.org
55
56
58       Copyright © 2001- Free Software Foundation, Inc., and others.
59       Copying and distribution of this file, with  or  without  modification,
60       are  permitted in any medium without royalty provided the copyright no‐
61       tice and this notice are preserved.
62

SEE ALSO

64       The full documentation for gnutls is maintained as  a  Texinfo  manual.
65       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
66       visit
67
68       https://www.gnutls.org/manual/
69
70gnutls                              g3n.u7t.l6s_compress_certificate_set_methods(3)
Impressum