---
name: "libressl-SSL_set_max_send_fragment"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SSL_set_max_send_fragment"
---

# libressl-SSL\_set\_max\_send\_fragment(3)

control fragment sizes

## NAME

**SSL\_CTX\_set\_max\_send\_fragment**, **SSL\_set\_max\_send\_fragment** – control fragment sizes

## SYNOPSIS

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*);

## DESCRIPTION

**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.

## SEE ALSO

[ssl(3)](/ssl/3.md), SSL\_ctrl(3), SSL\_CTX\_set\_read\_ahead(3), SSL\_pending(3)

## 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.
