mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:25:11 +00:00
Merge remote-tracking branch 'public/pr/2112' into mbedtls-2.7-proposed
This commit is contained in:
commit
1222dddbd0
|
@ -7,6 +7,9 @@ Bugfix
|
||||||
MBEDTLS_THREADING_C is defined. Found by TrinityTonic, #1095
|
MBEDTLS_THREADING_C is defined. Found by TrinityTonic, #1095
|
||||||
* Fix a bug in the update function for SSL ticket keys which previously
|
* Fix a bug in the update function for SSL ticket keys which previously
|
||||||
invalidated keys of a lifetime of less than a 1s. Fixes #1968.
|
invalidated keys of a lifetime of less than a 1s. Fixes #1968.
|
||||||
|
* Fix a bug in the record decryption routine ssl_decrypt_buf()
|
||||||
|
which lead to accepting properly authenticated but improperly
|
||||||
|
padded records in case of CBC ciphersuites using Encrypt-then-MAC.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Add tests for session resumption in DTLS.
|
* Add tests for session resumption in DTLS.
|
||||||
|
|
|
@ -2131,13 +2131,13 @@ static int ssl_decrypt_buf( mbedtls_ssl_context *ssl )
|
||||||
correct = 0;
|
correct = 0;
|
||||||
}
|
}
|
||||||
auth_done++;
|
auth_done++;
|
||||||
|
|
||||||
/*
|
|
||||||
* Finally check the correct flag
|
|
||||||
*/
|
|
||||||
if( correct == 0 )
|
|
||||||
return( MBEDTLS_ERR_SSL_INVALID_MAC );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Finally check the correct flag
|
||||||
|
*/
|
||||||
|
if( correct == 0 )
|
||||||
|
return( MBEDTLS_ERR_SSL_INVALID_MAC );
|
||||||
#endif /* SSL_SOME_MODES_USE_MAC */
|
#endif /* SSL_SOME_MODES_USE_MAC */
|
||||||
|
|
||||||
/* Make extra sure authentication was performed, exactly once */
|
/* Make extra sure authentication was performed, exactly once */
|
||||||
|
|
Loading…
Reference in a new issue