1gnutls_record_set_max_size(3)       gnutls       gnutls_record_set_max_size(3)
2
3
4

NAME

6       gnutls_record_set_max_size - sets the maximum record size
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       ssize_t   gnutls_record_set_max_size(gnutls_session_t  session,  size_t
12       size);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t structure.
17
18       size_t size is the new size
19

DESCRIPTION

21       This function sets the maximum record packet size in  this  connection.
22       This property can only be set to clients.  The server may choose not to
23       accept the requested size.
24
25       Acceptable  values  are   512(=2^9),   1024(=2^10),   2048(=2^11)   and
26       4096(=2^12).   The requested record size does get in effect immediately
27       only while sending data. The receive part will take effect after a suc‐
28       cessful handshake.
29
30       This  function  uses a TLS extension called 'max record size'.  Not all
31       TLS implementations use or even understand this extension.
32

RETURNS

34       On success, GNUTLS_E_SUCCESS (zero) is  returned,  otherwise  an  error
35       code is returned.
36

REPORTING BUGS

38       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
39       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
40       http://www.gnu.org/gethelp/
41
43       Copyright © 2008 Free Software Foundation.
44       Copying  and  distribution  of this file, with or without modification,
45       are permitted in any medium  without  royalty  provided  the  copyright
46       notice and this notice are preserved.
47

SEE ALSO

49       The  full  documentation  for gnutls is maintained as a Texinfo manual.
50       If the info and gnutls programs are properly installed  at  your  site,
51       the command
52
53              info gnutls
54
55       should give you access to the complete manual.
56
57
58
59gnutls                               2.8.6       gnutls_record_set_max_size(3)
Impressum