[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:37:11 CET 2019


Hubert Kario started a new discussion on lib/ext/record_size_limit.c:

>  	if (new_size < MIN_RECORD_SIZE)
>  		return 0;
>  
> -	session->internals.hsk_flags |= HSK_RECORD_SIZE_LIMIT_NEGOTIATED;
> +	/* if a record size larger than user specified maximum, ignore it */
> +	if (new_size > session->security_parameters.max_record_send_size)
> +		return 0;

I'm not sure how that helps... so the client advertises that it can handle, say 2^12 B long records, but we have memory to send 2^10 records at most, why then should we _not_ negotiate the extension when the client will have no problem accepting our small 2^10 B records?

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


More information about the Gnutls-devel mailing list