From 6b901fc4f5a2e379365615c8d9f85f11a0472377 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 24 May 2015 21:42:13 +0200 Subject: [PATCH] Adjust to new ObjOpenSSL This disables the new automatic certificate verification and still does the manual verification. --- src/XMPPConnection.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index 92d08c8..d8d3cdf 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -904,10 +904,14 @@ withObject: self]; newSock = [[SSLSocket alloc] initWithSocket: _socket]; + [newSock setCertificateVerificationEnabled: false]; +#if 0 + /* FIXME: Not yet implemented by ObjOpenSSL */ [newSock setCertificateFile: _certificateFile]; [newSock setPrivateKeyFile: _privateKeyFile]; [newSock setPrivateKeyPassphrase: _privateKeyPassphrase]; - [newSock startTLS]; +#endif + [newSock startTLSWithExpectedHost: nil]; [_socket release]; _socket = newSock;