#$config['xmpp']['server'] = 'server.example.net';
#$config['xmpp']['port'] = 5222;
#$config['xmpp']['user'] = 'update';
+#$config['xmpp']['encryption'] = false;
#$config['xmpp']['resource'] = 'uniquename';
#$config['xmpp']['password'] = 'blahblahblah';
#$config['xmpp']['public'][] = 'someindexer@example.net';
'server' => 'INVALID SERVER',
'port' => 5222,
'user' => 'update',
+ 'encryption' => true,
'resource' => 'uniquename',
'password' => 'blahblahblah',
'host' => NULL, # only set if != server
XMPPHP_Log::LEVEL_VERBOSE : NULL
);
$conn->autoSubscribe();
-
+ $conn->useEncryption(common_config('xmpp', 'encryption'));
+
if (!$conn) {
return false;
}