diff --git a/src/XMPPConnection.h b/src/XMPPConnection.h index 7b45fbf..1f3c79e 100644 --- a/src/XMPPConnection.h +++ b/src/XMPPConnection.h @@ -157,6 +157,7 @@ OFXMLElementBuilder *_elementBuilder, *_oldElementBuilder; OFString *_username, *_password, *_server, *_resource; OFString *_privateKeyFile, *_certificateFile; + const char *_privateKeyPassphrase; OFString *_domain, *_domainToASCII; XMPPJID *_JID; uint16_t _port; diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index 936886f..df6d9c4 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -893,9 +893,11 @@ connectionWillUpgradeToTLS:) withObject: self]; - newSock = [[SSLSocket alloc] initWithSocket: _socket - privateKeyFile: _privateKeyFile - certificateFile: _certificateFile]; + newSock = [[SSLSocket alloc] initWithSocket: _socket]; + [newSock setCertificateFile: _certificateFile]; + [newSock setPrivateKeyFile: _privateKeyFile]; + [newSock setPrivateKeyPassphrase: _privateKeyPassphrase]; + [newSock startTLS]; [_socket release]; _socket = newSock;