DTLS_get_data_mtu.3ossl - Man Page

Get maximum data payload size

Synopsis

 #include <openssl/ssl.h>

 size_t DTLS_get_data_mtu(const SSL *ssl);

Description

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.

History

The DTLS_get_data_mtu() function was added in OpenSSL 1.1.1.

Info

2024-04-04 3.2.1 OpenSSL