Debian Codegraph @

doc/functions/gnutls_handshake_set_max_packet_length

raw
1
2
3
4
5 @deftypefun {void} {gnutls_handshake_set_max_packet_length} (gnutls_session_t @var{session}, size_t @var{max})
6 @var{session}: is a @code{gnutls_session_t} type.
7
8 @var{max}: is the maximum number.
9
10 This function will set the maximum size of all handshake messages.
11 Handshakes over this size are rejected with
12 @code{GNUTLS_E_HANDSHAKE_TOO_LARGE} error code. The default value is
13 128kb which is typically large enough. Set this to 0 if you do not
14 want to set an upper limit.
15
16 The reason for restricting the handshake message sizes are to
17 limit Denial of Service attacks.
18
19 Note that the maximum handshake size was increased to 128kb
20 from 48kb in GnuTLS 3.5.5.
21 @end deftypefun