SVN commit 810376 by casanova: * Trusted certificates must be set before creating the TLS Handler. * This should solve bug #154940. Waiting for feedbacks before closing the bug report. M +5 -8 jabberclient.cpp --- trunk/KDE/kdenetwork/kopete/protocols/jabber/jabberclient.cpp #810375:810376 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -646,15 +647,11 @@ if ( QCA::isSupported ("tls") ) { d->jabberTLS = new QCA::TLS; - d->jabberTLSHandler = new XMPP::QCATLSHandler ( d->jabberTLS ); + d->jabberTLS->setTrustedCertificates(QCA::systemStore()); + d->jabberTLSHandler = new QCATLSHandler(d->jabberTLS); + d->jabberTLSHandler->setXMPPCertCheck(true); - { - using namespace XMPP; - QObject::connect ( d->jabberTLSHandler, SIGNAL ( tlsHandshaken() ), this, SLOT ( slotTLSHandshaken () ) ); - } - - if( QCA::haveSystemStore() ) - d->jabberTLS->setTrustedCertificates( QCA::systemStore() ); + QObject::connect ( d->jabberTLSHandler, SIGNAL ( tlsHandshaken() ), SLOT ( slotTLSHandshaken () ) ); } /*