Adjust to new ObjOpenSSL
This disables the new automatic certificate verification and still does the manual verification.
This commit is contained in:
parent
dfe6a0b653
commit
6b901fc4f5
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue