1gnutls_handshake_set_max_packet_lengtghng(un3tu)ltsls_handshake_set_max_packet_length(3)
2
3
4
6 gnutls_handshake_set_max_packet_length - set the maximum size of the
7 handshake
8
10 #include <gnutls/gnutls.h>
11
12 void gnutls_handshake_set_max_packet_length(gnutls_session_t session,
13 size_t max);
14
16 gnutls_session_t session
17 is a gnutls_session_t structure.
18
19 size_t max is the maximum number.
20
22 This function will set the maximum size of all handshake messages.
23 Handshakes over this size are rejected with GNUTLS_E_HAND‐
24 SHAKE_TOO_LARGE error code. The default value is 48kb which is typi‐
25 cally large enough. Set this to 0 if you do not want to set an upper
26 limit.
27
28 The reason for restricting the handshake message sizes are to limit
29 Denial of Service attacks.
30
32 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
33 http://www.gnu.org/software/gnutls/ General help using GNU software:
34 http://www.gnu.org/gethelp/
35
37 Copyright © 2008 Free Software Foundation.
38 Copying and distribution of this file, with or without modification,
39 are permitted in any medium without royalty provided the copyright
40 notice and this notice are preserved.
41
43 The full documentation for gnutls is maintained as a Texinfo manual.
44 If the info and gnutls programs are properly installed at your site,
45 the command
46
47 info gnutls
48
49 should give you access to the complete manual.
50
51
52
53gnutls 2g.n8u.t6ls_handshake_set_max_packet_length(3)