mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
esp_crt_bundle: Allow verify_callback to correct BADCERT_BAD_MD
This commit is contained in:
committed by
Marius Vikhammer
parent
820e092a8d
commit
a79cb9f8cd
@@ -97,7 +97,10 @@ int esp_crt_verify_callback(void *buf, mbedtls_x509_crt *crt, int data, uint32_t
|
||||
{
|
||||
mbedtls_x509_crt *child = crt;
|
||||
|
||||
if (*flags != MBEDTLS_X509_BADCERT_NOT_TRUSTED) {
|
||||
if (!*flags) {
|
||||
return 0;
|
||||
}
|
||||
if (*flags & ~(MBEDTLS_X509_BADCERT_NOT_TRUSTED | MBEDTLS_X509_BADCERT_BAD_MD)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user