mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Don't expect added error codes
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
committed by
David Horstmann
parent
0a69f14abc
commit
a7e14dc9eb
@@ -7004,7 +7004,7 @@ static int ssl_parse_certificate_chain(mbedtls_ssl_context *ssl,
|
|||||||
#endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
|
#endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case 0: /*ok*/
|
case 0: /*ok*/
|
||||||
case MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG + MBEDTLS_ERR_OID_NOT_FOUND:
|
case MBEDTLS_ERR_OID_NOT_FOUND:
|
||||||
/* Ignore certificate with an unknown algorithm: maybe a
|
/* Ignore certificate with an unknown algorithm: maybe a
|
||||||
prior certificate was already trusted. */
|
prior certificate was already trusted. */
|
||||||
break;
|
break;
|
||||||
|
@@ -518,7 +518,7 @@ int mbedtls_ssl_tls13_parse_certificate(mbedtls_ssl_context *ssl,
|
|||||||
switch (ret) {
|
switch (ret) {
|
||||||
case 0: /*ok*/
|
case 0: /*ok*/
|
||||||
break;
|
break;
|
||||||
case MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG + MBEDTLS_ERR_OID_NOT_FOUND:
|
case MBEDTLS_ERR_OID_NOT_FOUND:
|
||||||
/* Ignore certificate with an unknown algorithm: maybe a
|
/* Ignore certificate with an unknown algorithm: maybe a
|
||||||
prior certificate was already trusted. */
|
prior certificate was already trusted. */
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user