gnutls\_record\_send\_range(3) gnutls gnutls\_record\_send\_range(3)

# [NAME](#NAME)

gnutls\_record\_send\_range - API function

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;gnutls/gnutls.h&gt;**

**ssize\_t gnutls\_record\_send\_range(gnutls\_session\_t session, const void * data, size\_t data\_size, const gnutls\_range\_st * range);**

# [ARGUMENTS](#ARGUMENTS)

[gnutls\_session\_t session](#gnutls_session_t)

is a **gnutls\_session\_t** type.

[const void * data](#const)

contains the data to send.

[size\_t data\_size](#size_t)

is the length of the data.

[const gnutls\_range\_st * range](#const~2)

is the range of lengths in which the real data length must be hidden.

# [DESCRIPTION](#DESCRIPTION)

This function operates like **gnutls\_record\_send()** but, while **gnutls\_record\_send()** adds minimal padding to each TLS record, this function uses the TLS extra-padding feature to conceal the real data size within the range of lengths provided. Some TLS sessions do not support extra padding (e.g. stream ciphers in standard TLS or SSL3 sessions). To know whether the current session supports extra padding, and hence length hiding, use the **gnutls\_record\_can\_use\_length\_hiding()** function.

# [NOTE](#NOTE)

This function currently is limited to blocking sockets.

# [RETURNS](#RETURNS)

The number of bytes sent (that is data\_size in a successful invocation), or a negative error code.

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;bugs@gnutls.org&gt;.  
Home page: https://www.gnutls.org

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2001-2023 Free Software Foundation, Inc., and others.  
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

# [SEE ALSO](#SEE_ALSO)

The full documentation for **gnutls** is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit

[https://www.gnutls.org/manual/](https://www.gnutls.org/manual/)

3.8.13 gnutls

---

Document: gnutls_record_send_range(3) from gnutls 3.8.13-r1 (Chainguard OS)
Source: https://gitlab.com/gnutls/gnutls
