summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2020-04-17 11:38:39 -0400
committerGitHub <noreply@github.com>2020-04-17 11:38:39 -0400
commit5117dcde4a6a9f721e0b1a3bc9b5f9fb9112da0f (patch)
tree7ce16aef54c825c6ad3f025da822d309eda8e0aa /cpp/src
parentFixed SSL transceiver to no longer rely on BeginWrite/BeginRead, fixes #781 (diff)
downloadice-5117dcde4a6a9f721e0b1a3bc9b5f9fb9112da0f.tar.bz2
ice-5117dcde4a6a9f721e0b1a3bc9b5f9fb9112da0f.tar.xz
ice-5117dcde4a6a9f721e0b1a3bc9b5f9fb9112da0f.zip
Fix for SecPolicyCreateSSL in Catalina and iOS 13 (Closes #798)
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceSSL/SecureTransportTransceiverI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
index a52067b962d..baca671a89b 100644
--- a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
+++ b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
@@ -121,7 +121,7 @@ checkTrustResult(SecTrustRef trust,
if(engine->getCheckCertName() && !host.empty())
{
UniqueRef<CFStringRef> hostref(toCFString(host));
- UniqueRef<SecPolicyRef> policy(SecPolicyCreateSSL(false, hostref.get()));
+ UniqueRef<SecPolicyRef> policy(SecPolicyCreateSSL(true, hostref.get()));
UniqueRef<CFArrayRef> policies;
if((err = SecTrustCopyPolicies(trust, &policies.get())))
{