[gnutls-devel] GnuTLS | Fix issues in record_size_limit extension handling (!879)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jan 31 20:39:58 CET 2019


Hubert Kario started a new discussion on lib/gnutls_int.h:

>  {
>  	size_t max;
>  
> -	if (IS_DTLS(session)) {
> -		max = MIN(gnutls_dtls_get_data_mtu(session), session->security_parameters.max_record_send_size);
> -	} else {
> -		max = session->security_parameters.max_record_send_size;
> -	}
> +	max = MIN(session->security_parameters.max_record_send_size,
> +		  session->security_parameters.max_record_recv_size);

there's no doc string in the function so I don't know what's the use case, but the name strongly suggest that the max_record_recv_size should not be taken into account for this calculation...

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/879#note_137186608
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/20190131/e33fd203/attachment-0001.html>


More information about the Gnutls-devel mailing list