1gnutls_record_send_range(3)         gnutls         gnutls_record_send_range(3)
2
3
4

NAME

6       gnutls_record_send_range - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       ssize_t gnutls_record_send_range(gnutls_session_t session, const void *
12       data, size_t data_size, const gnutls_range_st * range);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       const void * data
19                   contains the data to send.
20
21       size_t data_size
22                   is the length of the data.
23
24       const gnutls_range_st * range
25                   is the range of lengths in which the real data length  must
26                   be hidden.
27

DESCRIPTION

29       This   function   operates   like   gnutls_record_send()   but,   while
30       gnutls_record_send() adds minimal padding  to  each  TLS  record,  this
31       function  uses  the  TLS extra-padding feature to conceal the real data
32       size within the range of lengths provided.  Some TLS  sessions  do  not
33       support extra padding (e.g. stream ciphers in standard TLS or SSL3 ses‐
34       sions). To know whether the current session supports extra padding, and
35       hence  length  hiding,  use  the  gnutls_record_can_use_length_hiding()
36       function.
37

NOTE

39       This function currently is limited to blocking sockets.
40

RETURNS

42       The number of bytes sent (that is data_size  in  a  successful  invoca‐
43       tion), or a negative error code.
44

REPORTING BUGS

46       Report bugs to <bugs@gnutls.org>.
47       Home page: http://www.gnutls.org
48
49
51       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
52       Copying  and  distribution  of this file, with or without modification,
53       are permitted in any medium  without  royalty  provided  the  copyright
54       notice and this notice are preserved.
55

SEE ALSO

57       The  full  documentation  for gnutls is maintained as a Texinfo manual.
58       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
59       visit
60
61       http://www.gnutls.org/manual/
62
63gnutls                               3.6.5         gnutls_record_send_range(3)
Impressum