---
name: "gnutls_record_send_range"
section: "3"
platform: "linux"
package: "gnutls"
version: "3.8.13-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gnutls_record_send_range"
---

# gnutls\_record\_send\_range(3)

API function

## NAME

gnutls\_record\_send\_range - API function

## SYNOPSIS

**#include \<gnutls/gnutls.h\>**

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

## ARGUMENTS

- gnutls\_session\_t session

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

- const void \* data

  contains the data to send.

- size\_t data\_size

  is the length of the data.

- const gnutls\_range\_st \* range

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

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

This function currently is limited to blocking sockets.

## RETURNS

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

## REPORTING BUGS

Report bugs to \<bugs@gnutls.org\>.\
 Home page: https://www.gnutls.org

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

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/
