1
0
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:
Bastien Bouclet 2019-11-02 14:15:18 +01:00 committed by Daniel Stenberg
parent 9c49824902
commit 9910d6b9a4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}