diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-08-04 15:40:24 +0200 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-08-11 09:47:47 +0200 |
commit | b4f1b7b65871de8f44228e77fc9ab2ac8b6d7918 (patch) | |
tree | b39a2e8dbfe3414602a2e7e6b4bc556f942a4729 /ssl/t1_lib.c | |
parent | MacOS: Add an include of <CommonCrypto/CommonCryptoError.h> (diff) | |
download | openssl-b4f1b7b65871de8f44228e77fc9ab2ac8b6d7918.tar.xz openssl-b4f1b7b65871de8f44228e77fc9ab2ac8b6d7918.zip |
Omitted signature_algorithms extension alerts updated
Fixes #15484
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16217)
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 3579202c22..9345838f6a 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -3302,7 +3302,7 @@ int tls_choose_sigalg(SSL *s, int fatalerrs) if ((lu = tls1_get_legacy_sigalg(s, -1)) == NULL) { if (!fatalerrs) return 1; - SSLfatal(s, SSL_AD_INTERNAL_ERROR, + SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM); return 0; } @@ -3317,7 +3317,7 @@ int tls_choose_sigalg(SSL *s, int fatalerrs) if (i == sent_sigslen) { if (!fatalerrs) return 1; - SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, + SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, SSL_R_WRONG_SIGNATURE_TYPE); return 0; } |