1gnutls_record_send2(3) gnutls gnutls_record_send2(3)
2
3
4
6 gnutls_record_send2 - API function
7
9 #include <gnutls/gnutls.h>
10
11 ssize_t gnutls_record_send2(gnutls_session_t session, const void *
12 data, size_t data_size, size_t pad, unsigned flags);
13
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 size_t pad padding to be added to the record
25
26 unsigned flags
27 must be zero
28
30 This function is identical to gnutls_record_send() except that it takes
31 an extra argument to specify padding to be added the record. To deter‐
32 mine the maximum size of padding, use gnutls_record_get_max_size() and
33 gnutls_record_overhead_size().
34
35 Note that in order for GnuTLS to provide constant time processing of
36 padding and data in TLS1.3, the flag GNUTLS_SAFE_PADDING_CHECK must be
37 used in gnutls_init().
38
40 The number of bytes sent, or a negative error code. The number of
41 bytes sent might be less than data_size . The maximum number of bytes
42 this function can send in a single call depends on the negotiated maxi‐
43 mum record size.
44
46 3.6.3
47
49 Report bugs to <bugs@gnutls.org>.
50 Home page: http://www.gnutls.org
51
52
54 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
55 Copying and distribution of this file, with or without modification,
56 are permitted in any medium without royalty provided the copyright
57 notice and this notice are preserved.
58
60 The full documentation for gnutls is maintained as a Texinfo manual.
61 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
62 visit
63
64 http://www.gnutls.org/manual/
65
66gnutls 3.6.5 gnutls_record_send2(3)