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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Oct 29 13:51:21 CET 2018


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

> +ssize_t
> +gnutls_record_recv_early_data(gnutls_session_t session, void *data, size_t data_size)
> +{
> +	mbuffer_st *bufel;
> +	gnutls_datum_t msg;
> +	size_t length;
> +
> +	if (session->security_parameters.entity != GNUTLS_SERVER)
> +		return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
> +
> +	bufel = _mbuffer_head_get_first(&session->internals.early_data_recv_buffer,
> +					&msg);
> +	if (bufel == NULL)
> +		return
> +		    gnutls_assert_val
> +		    (GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE);

It would be good to document this error code explicitly in the `Returns` field above.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/775#note_112778644
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/20181029/9064c735/attachment-0001.html>


More information about the Gnutls-devel mailing list