mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
mbedtls: add error message for cert validity starting in the future
Closes #4552
This commit is contained in:
parent
9c49824902
commit
9910d6b9a4
@ -588,6 +588,9 @@ mbed_connect_step2(struct connectdata *conn,
|
||||
else if(ret & MBEDTLS_X509_BADCERT_NOT_TRUSTED)
|
||||
failf(data, "Cert verify failed: BADCERT_NOT_TRUSTED");
|
||||
|
||||
else if(ret & MBEDTLS_X509_BADCERT_FUTURE)
|
||||
failf(data, "Cert verify failed: BADCERT_FUTURE");
|
||||
|
||||
return CURLE_PEER_FAILED_VERIFICATION;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user