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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Nov 2 16:31:47 CET 2018


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

> +	gnutls_db_retr_func db_retrieve_func;
> +	gnutls_db_store_func db_store_func;
> +	void *db_ptr;
> +	int ret = 0;
> +
> +	if (unlikely(id->size > MAX_HASH_SIZE))
> +		return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
> +
> +	gnutls_gettime(&now);
> +	server_ticket_age = timespec_sub_ms(&now, ticket_creation_time);
> +
> +	/* It shouldn't be possible that the server's view of ticket
> +	 * age is smaller than the client's view.
> +	 */
> +	if (unlikely(server_ticket_age < client_ticket_age))
> +		return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);

If the client ticket age is taken by the client message; maybe some illegal parameter error is better here.

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


More information about the Gnutls-devel mailing list