[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:19 CET 2018


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

>  	int ret;
>  	gnutls_datum_t packed = { NULL, 0 };
>  	tls13_ticket_st ticket_data;
> -	time_t now = gnutls_time(0);
>  
>  	if (session->internals.resumed != RESUME_FALSE) {
> +		time_t now = gnutls_time(0);

Here we call both gnutls_time() and gnutls_gettime(). There are most likely not very significant calls in performance terms as they are often implemented as vdso, but why not call only gnutls_gettime() once and assign the now from its seconds value?

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


More information about the Gnutls-devel mailing list