1gnutls_handshake_set_max_packet_lengtghng(un3tu)ltsls_handshake_set_max_packet_length(3)
2
3
4

NAME

6       gnutls_handshake_set_max_packet_length - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_handshake_set_max_packet_length(gnutls_session_t  session,
12       size_t max);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       size_t max  is the maximum number.
19

DESCRIPTION

21       This function will set the maximum  size  of  all  handshake  messages.
22       Handshakes   over   this   size   are   rejected   with  GNUTLS_E_HAND‐
23       SHAKE_TOO_LARGE error code.  The default value is 128kb which is  typi‐
24       cally  large  enough.  Set this to 0 if you do not want to set an upper
25       limit.
26
27       The reason for restricting the handshake message  sizes  are  to  limit
28       Denial of Service attacks.
29
30       Note  that  the maximum handshake size was increased to 128kb from 48kb
31       in GnuTLS 3.5.5.
32

REPORTING BUGS

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

SEE ALSO

45       The full documentation for gnutls is maintained as  a  Texinfo  manual.
46       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
47       visit
48
49       https://www.gnutls.org/manual/
50
51gnutls                               3g.n6u.t8ls_handshake_set_max_packet_length(3)
Impressum