mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-05 12:06:26 +02:00
sig_algs: fix typo in client's sig_algs check
This bug caused the client accepting sig_algs used by the server that it explicitly wanted to disallow. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
@@ -1910,8 +1910,8 @@ start_processing:
|
||||
MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2);
|
||||
sig_alg = MBEDTLS_GET_UINT16_BE(p, 0);
|
||||
if (mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg(
|
||||
sig_alg, &pk_alg, &md_alg) != 0 &&
|
||||
!mbedtls_ssl_sig_alg_is_offered(ssl, sig_alg) &&
|
||||
sig_alg, &pk_alg, &md_alg) != 0 ||
|
||||
!mbedtls_ssl_sig_alg_is_offered(ssl, sig_alg) ||
|
||||
!mbedtls_ssl_sig_alg_is_supported(ssl, sig_alg)) {
|
||||
MBEDTLS_SSL_DEBUG_MSG(1,
|
||||
("bad server key exchange message"));
|
||||
|
||||
Reference in New Issue
Block a user