[gnutls-devel] GnuTLS | lib: drop gnutls_uint64 usage as sequence number (!1102)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Oct 22 09:12:34 CEST 2019




Dmitry Eremin-Solenikov commented on a discussion on lib/dtls.c: https://gitlab.com/gnutls/gnutls/merge_requests/1102#note_233669871

>  	if (ret < 0)
>  		return;
>  
> -	params->write.sequence_number.i[7] = prestate->record_seq;
> +	params->write.sequence_number = prestate->record_seq;

@rockdaboot @nmav on a second thought, should we preserve epoch here?
IOW:
```c
params->write.sequence_number = (params->write.sequence_number & UINT64_C(0xffff000000000000) | (prestate->record_seq & 0xff);
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1102#note_233669871
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/20191022/c2fb73f2/attachment.html>


More information about the Gnutls-devel mailing list