[gnutls-devel] GnuTLS | WIP: updates in anti-replay subsystem (!805)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Nov 14 15:41:19 CET 2018


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

>  	p = entry_buffer;
>  	_gnutls_write_uint32(PACKED_SESSION_MAGIC, p);
>  	p += 4;
>  	_gnutls_write_uint32(now.tv_sec, p);
>  	p += 4;
> -	_gnutls_write_uint32(anti_replay->window / 1000, p);
> +	window = anti_replay->window / 1000;
> +	_gnutls_write_uint32(window, p);
>  	p += 4;
>  	entry.data = entry_buffer;
>  	entry.size = p - entry_buffer;
>  
> -	ret = session->internals.db_add_func(session->internals.db_ptr,
> -					     key, entry);
> +	ret = anti_replay->db_add_func(anti_replay->db_ptr,
> +				       now.tv_sec+window, &key, &entry);

casted them to uint64_t.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/805#note_117250905
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/20181114/9ca5c5ef/attachment.html>


More information about the Gnutls-devel mailing list