[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 14:43:05 CET 2018


Daiki Ueno started a new discussion on lib/tls13/anti_replay.c:

> -	 * gnutls_db_entry_is_expired() work.
> +	 * gnutls_db_check_entry_expire_time() work.
>  	 */
>  	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,

now that `_gnutls_anti_replay_check` no longer needs `session`, maybe the 1st argument could be `gnutls_anti_replay_t`? That could also simplify `tests/tls13/anti_replay.c` as you don't need to initialize sessions.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/805#note_117222259
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/97e21433/attachment-0001.html>


More information about the Gnutls-devel mailing list