Skip to content

Commit a7e14dc

Browse files
Don't expect added error codes
Signed-off-by: Gilles Peskine <[email protected]>
1 parent 0a69f14 commit a7e14dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/ssl_tls.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7004,7 +7004,7 @@ static int ssl_parse_certificate_chain(mbedtls_ssl_context *ssl,
70047004
#endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
70057005
switch (ret) {
70067006
case 0: /*ok*/
7007-
case MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG + MBEDTLS_ERR_OID_NOT_FOUND:
7007+
case MBEDTLS_ERR_OID_NOT_FOUND:
70087008
/* Ignore certificate with an unknown algorithm: maybe a
70097009
prior certificate was already trusted. */
70107010
break;

library/ssl_tls13_generic.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ int mbedtls_ssl_tls13_parse_certificate(mbedtls_ssl_context *ssl,
518518
switch (ret) {
519519
case 0: /*ok*/
520520
break;
521-
case MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG + MBEDTLS_ERR_OID_NOT_FOUND:
521+
case MBEDTLS_ERR_OID_NOT_FOUND:
522522
/* Ignore certificate with an unknown algorithm: maybe a
523523
prior certificate was already trusted. */
524524
break;

0 commit comments

Comments
 (0)