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 structure.
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 48kb 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

REPORTING BUGS

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

SEE ALSO

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.1g2n.u6t.l1s_handshake_set_max_packet_length(3)
Impressum