VS_no_verify implies don't check identity, either

This commit is contained in:
David Rose 2002-12-20 01:15:43 +00:00
parent 552c5b6791
commit c5143316fd

View File

@ -975,12 +975,16 @@ run_ssl_handshake() {
<< " / " << org_name << "\n"; << " / " << org_name << "\n";
} }
if (_client->get_verify_ssl() != HTTPClient::VS_no_verify) {
// Check that the server is someone we expected to be talking
// to.
if (!verify_server(subject)) { if (!verify_server(subject)) {
downloader_cat.info() downloader_cat.info()
<< "Server does not match any expected server.\n"; << "Server does not match any expected server.\n";
_state = S_failure; _state = S_failure;
return false; return false;
} }
}
X509_free(cert); X509_free(cert);
} }