libressl-SSL_set_max_send_fragment(3)

libressl-SSL_set_max_send_fragment3

Control fragment sizes

Usage

SSL Library (libssl, -lssl) libcrypto

#include <openssl/ssl.h>

long

SSL_CTX_set_max_send_fragment(SSL_CTX *ctx, long m);

long

SSL_set_max_send_fragment(SSL *ssl, long m);

Overview

SSL_CTX_set_max_send_fragment() and SSL_set_max_send_fragment() set the max_send_fragment parameter for SSL_CTX and SSL objects respectively. This value restricts the amount of plaintext bytes that will be sent in any one SSL/TLS record. By default its value is SSL3_RT_MAX_PLAIN_LENGTH (16384). These functions will only accept a value in the range 512 - SSL3_RT_MAX_PLAIN_LENGTH.

These functions are implemented using macros.

Return values

These functions return 1 on success or 0 on failure.

History

SSL_CTX_set_max_send_fragment() and SSL_set_max_send_fragment() first appeared in OpenSSL 1.0.0 and have been available since OpenBSD 4.9.

From libressl 4.4.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.