Index: src/XMPPConnection.h ================================================================== --- src/XMPPConnection.h +++ src/XMPPConnection.h @@ -155,10 +155,11 @@ id _socket; OFXMLParser *_parser, *_oldParser; OFXMLElementBuilder *_elementBuilder, *_oldElementBuilder; OFString *_username, *_password, *_server, *_resource; OFString *_privateKeyFile, *_certificateFile; + const char *_privateKeyPassphrase; OFString *_domain, *_domainToASCII; XMPPJID *_JID; uint16_t _port; id _dataStorage; OFString *_language; Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -891,13 +891,15 @@ [_delegates broadcastSelector: @selector( 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; _encrypted = YES;