Adjust to new ObjOpenSSL

This disables the new automatic certificate verification and still does
the manual verification.
This commit is contained in:
Jonathan Schleifer 2015-05-24 21:42:13 +02:00
parent dfe6a0b653
commit 6b901fc4f5
No known key found for this signature in database
GPG key ID: 33E61C63EB4AE7B5

View file

@ -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;