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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Feb 1 16:07:18 CET 2019


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

> +	/* we do not want to accept sizes outside of our supported range */
> +	if (new_size < MIN_RECORD_SIZE) {
> +		/* for server, reject it by omitting the extension in the reply */
> +		if (session->security_parameters.entity == GNUTLS_SERVER)
> +			return gnutls_assert_val(0);
> +		else
> +			return gnutls_assert_val(GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER);
> +	}
>  
>  	session->internals.hsk_flags |= HSK_RECORD_SIZE_LIMIT_NEGOTIATED;
>  
> -	session->security_parameters.max_record_recv_size = new_size;
> +	_gnutls_handshake_log("EXT[%p]: record_size_limit %u negotiated\n",
> +			      session, (unsigned)new_size);
> +
> +	session->security_parameters.max_record_recv_size =

the record layer code is applying the size only for the encrypted records, not right away?

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


More information about the Gnutls-devel mailing list