1gnutls_record_send_early_data(3) gnutls gnutls_record_send_early_data(3)
2
3
4
6 gnutls_record_send_early_data - API function
7
9 #include <gnutls/gnutls.h>
10
11 ssize_t gnutls_record_send_early_data(gnutls_session_t session, const
12 void * data, size_t data_size);
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
25 This function can be used by a client to send data early in the hand‐
26 shake processes when resuming a session. This is used to implement a
27 zero-roundtrip (0-RTT) mode. It has the same semantics as
28 gnutls_record_send().
29
30 There may be a limit to the amount of data sent as early data. Use
31 gnutls_record_get_max_early_data_size() to check the limit. If the
32 limit exceeds, this function returns GNUTLS_E_RECORD_LIMIT_REACHED.
33
35 The number of bytes sent, or a negative error code. The number of
36 bytes sent might be less than data_size . The maximum number of bytes
37 this function can send in a single call depends on the negotiated maxi‐
38 mum record size.
39
41 3.6.5
42
44 Report bugs to <bugs@gnutls.org>.
45 Home page: http://www.gnutls.org
46
47
49 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
57 visit
58
59 http://www.gnutls.org/manual/
60
61gnutls 3.6.5 gnutls_record_send_early_data(3)