mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
VS_no_verify implies don't check identity, either
This commit is contained in:
parent
552c5b6791
commit
c5143316fd
@ -975,11 +975,15 @@ run_ssl_handshake() {
|
|||||||
<< " / " << org_name << "\n";
|
<< " / " << org_name << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!verify_server(subject)) {
|
if (_client->get_verify_ssl() != HTTPClient::VS_no_verify) {
|
||||||
downloader_cat.info()
|
// Check that the server is someone we expected to be talking
|
||||||
<< "Server does not match any expected server.\n";
|
// to.
|
||||||
_state = S_failure;
|
if (!verify_server(subject)) {
|
||||||
return false;
|
downloader_cat.info()
|
||||||
|
<< "Server does not match any expected server.\n";
|
||||||
|
_state = S_failure;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
X509_free(cert);
|
X509_free(cert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user