Blame doc/functions/gnutls_record_set_max_size

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {ssize_t} {gnutls_record_set_max_size} (gnutls_session_t @var{session}, size_t @var{size})
Packit aea12f
@var{session}: is a @code{gnutls_session_t}  type.
Packit aea12f
Packit aea12f
@var{size}: is the new size
Packit aea12f
Packit aea12f
This function sets the maximum amount of plaintext sent and
Packit aea12f
received in a record in this connection.
Packit aea12f
Packit aea12f
Prior to 3.6.4, this function was implemented using a TLS extension
Packit aea12f
called 'max fragment length', which limits the acceptable values to
Packit aea12f
512(=2^9), 1024(=2^10), 2048(=2^11) and 4096(=2^12).
Packit aea12f
Packit aea12f
Since 3.6.4, the limit is also negotiated through a new TLS
Packit aea12f
extension called 'record size limit', which doesn't have the
Packit aea12f
limitation, as long as the value ranges between 512 and 16384.
Packit aea12f
Note that while the 'record size limit' extension is preferred, not
Packit aea12f
all TLS implementations use or even understand the extension.
Packit aea12f
Packit aea12f
@strong{Deprecated:} if the client can assume that the 'record size limit'
Packit aea12f
extension is supported by the server, we recommend using
Packit aea12f
@code{gnutls_record_set_max_recv_size()}  instead.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned,
Packit aea12f
otherwise a negative error code is returned.
Packit aea12f
@end deftypefun