Blame doc/functions/gnutls_handshake_set_max_packet_length

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {void} {gnutls_handshake_set_max_packet_length} (gnutls_session_t @var{session}, size_t @var{max})
Packit aea12f
@var{session}: is a @code{gnutls_session_t}  type.
Packit aea12f
Packit aea12f
@var{max}: is the maximum number.
Packit aea12f
Packit aea12f
This function will set the maximum size of all handshake messages.
Packit aea12f
Handshakes over this size are rejected with
Packit aea12f
@code{GNUTLS_E_HANDSHAKE_TOO_LARGE}  error code.  The default value is
Packit aea12f
128kb which is typically large enough.  Set this to 0 if you do not
Packit aea12f
want to set an upper limit.
Packit aea12f
Packit aea12f
The reason for restricting the handshake message sizes are to
Packit aea12f
limit Denial of Service attacks.
Packit aea12f
Packit aea12f
Note that the maximum handshake size was increased to 128kb
Packit aea12f
from 48kb in GnuTLS 3.5.5.
Packit aea12f
@end deftypefun