[gnutls-devel] GnuTLS | WIP: add support for 0-RTT (!775)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Oct 19 21:25:55 CEST 2018


Nikos Mavrogiannopoulos started a new discussion on lib/record.c:

> + * @session: is a #gnutls_session_t type.
> + * @data: the buffer that the data will be read into
> + * @data_size: the number of requested bytes
> + *
> + * This function has the similar semantics with gnutls_record_recv().
> + * The only difference is that it returns the application data sent as
> + * early data and thus it must be called in a handshake hook by the
> + * server.
> + *
> + * If %EINTR is returned by the internal pull function (the default
> + * is recv()) then %GNUTLS_E_INTERRUPTED will be returned.  If
> + * %GNUTLS_E_INTERRUPTED or %GNUTLS_E_AGAIN is returned, you must
> + * call this function again to get the data.  See also
> + * gnutls_record_get_direction().
> + *
> + * Returns: The number of bytes received and zero on EOF (for stream

Maybe: `The number of bytes received and zero when early data reading is complete; A negative error code is returned in case of an error.`

(Here the text also implies that one should read it in a loop until it returns zero, is that the intention?)

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/775#note_110387047
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181019/5cdfd758/attachment-0001.html>


More information about the Gnutls-devel mailing list