DTLS_get_data_mtu(3ssl)

DTLS_get_data_mtu3ssl

Get maximum data payload size

Usage

 #include <openssl/ssl.h>
 size_t DTLS_get_data_mtu(const SSL *ssl);

Overview

This function obtains the maximum data payload size for the established DTLS connection ssl, based on the DTLS record MTU and the overhead of the DTLS record header, encryption and authentication currently in use.

Return values

Returns the maximum data payload size on success, or 0 on failure.

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

History

The DTLS_get_data_mtu() function was added in OpenSSL 1.1.1.

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.