1gnutls_record_recv_early_data(3)    gnutls    gnutls_record_recv_early_data(3)
2
3
4

NAME

6       gnutls_record_recv_early_data - API function
7

SYNOPSIS

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

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       void * data the buffer that the data will be read into
19
20       size_t data_size
21                   the number of requested bytes
22

DESCRIPTION

24       This function can be used by a searver to retrieve data sent  early  in
25       the  handshake  processes  when  resuming  a  session.  This is used to
26       implement a zero-roundtrip (0-RTT) mode.  It has the same semantics  as
27       gnutls_record_recv().
28
29       This  function  can  be called either in a handshake hook, or after the
30       handshake is complete.
31

RETURNS

33       The number of bytes received and zero when early data reading  is  com‐
34       plete.   A  negative error code is returned in case of an error.  If no
35       early data is received during  the  handshake,  this  function  returns
36       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE.   The  number  of bytes received
37       might be less than the requested
38        data_size .
39

SINCE

41       3.6.5
42

REPORTING BUGS

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

SEE ALSO

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_recv_early_data(3)
Impressum