mirror of
https://github.com/curl/curl.git
synced 2026-05-13 21:26:20 +03:00
PolarSSL: correct return code for CRL matches
When a server certificate matches one in the given CRL file, the code now returns CURLE_SSL_CACERT as test case 313 expects and verifies.
This commit is contained in:
parent
118e73306d
commit
376b4d48fe
1 changed files with 3 additions and 1 deletions
|
|
@ -291,8 +291,10 @@ polarssl_connect_step2(struct connectdata *conn,
|
|||
if(ret & BADCERT_EXPIRED)
|
||||
failf(data, "Cert verify failed: BADCERT_EXPIRED\n");
|
||||
|
||||
if(ret & BADCERT_REVOKED)
|
||||
if(ret & BADCERT_REVOKED) {
|
||||
failf(data, "Cert verify failed: BADCERT_REVOKED");
|
||||
return CURLE_SSL_CACERT;
|
||||
}
|
||||
|
||||
if(ret & BADCERT_CN_MISMATCH)
|
||||
failf(data, "Cert verify failed: BADCERT_CN_MISMATCH");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue