mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 21:55:41 +01:00
Merge remote-tracking branch 'public/pr/1955' into iotssl-165-dtls-hs-fragmentation-new
* public/pr/1955: Adapt ChangeLog Fix overly strict bounds check in ssl_parse_certificate_request()
This commit is contained in:
commit
3879fdfece
@ -18,6 +18,9 @@ Bugfix
|
|||||||
* Fix a miscalculation of the maximum record expansion in
|
* Fix a miscalculation of the maximum record expansion in
|
||||||
mbedtls_ssl_get_record_expansion() in case of ChachaPoly ciphersuites,
|
mbedtls_ssl_get_record_expansion() in case of ChachaPoly ciphersuites,
|
||||||
or CBC ciphersuites in (D)TLS versions 1.1 or higher. Fixes #1913, #1914.
|
or CBC ciphersuites in (D)TLS versions 1.1 or higher. Fixes #1913, #1914.
|
||||||
|
* Fix overly strict bounds check in ssl_parse_certificate_request()
|
||||||
|
which could lead to valid CertificateRequest messages being rejected.
|
||||||
|
Fixes #1954.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Copy headers preserving timestamps when doing a "make install".
|
* Copy headers preserving timestamps when doing a "make install".
|
||||||
|
@ -2730,7 +2730,7 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl )
|
|||||||
* therefore the buffer length at this point must be greater than that
|
* therefore the buffer length at this point must be greater than that
|
||||||
* regardless of the actual code path.
|
* regardless of the actual code path.
|
||||||
*/
|
*/
|
||||||
if( ssl->in_hslen <= mbedtls_ssl_hs_hdr_len( ssl ) + 3 + n )
|
if( ssl->in_hslen <= mbedtls_ssl_hs_hdr_len( ssl ) + 2 + n )
|
||||||
{
|
{
|
||||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad certificate request message" ) );
|
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad certificate request message" ) );
|
||||||
mbedtls_ssl_send_alert_message( ssl, MBEDTLS_SSL_ALERT_LEVEL_FATAL,
|
mbedtls_ssl_send_alert_message( ssl, MBEDTLS_SSL_ALERT_LEVEL_FATAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user