Skip to content

Commit

Permalink
Omitted signature_algorithms extension alerts updated
Browse files Browse the repository at this point in the history
Fixes openssl#15484

Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#16217)
  • Loading branch information
beldmit committed Aug 11, 2021
1 parent ad2fc0b commit b4f1b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/t1_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit b4f1b7b

Please sign in to comment.