diff --git a/include/Swiften/Server/ServerFromClientSession.cpp b/include/Swiften/Server/ServerFromClientSession.cpp index 4a2bb751c748e1e074945c89b0c7d4d1b4bc54fa..de988fcd002e5f89eb84dac44ceacfc0f2926457 100644 --- a/include/Swiften/Server/ServerFromClientSession.cpp +++ b/include/Swiften/Server/ServerFromClientSession.cpp @@ -27,6 +27,7 @@ #include #include #include +#include namespace Swift { @@ -162,7 +163,7 @@ void ServerFromClientSession::handleSessionFinished(const boost::optionalstopLogin(JID(user_, getLocalJID().getDomain()), this); } -void ServerFromClientSession::addTLSEncryption(TLSServerContextFactory* tlsContextFactory, const PKCS12Certificate& cert) { +void ServerFromClientSession::addTLSEncryption(TLSServerContextFactory* tlsContextFactory, CertificateWithKey::ref cert) { tlsLayer = new TLSServerLayer(tlsContextFactory); if (!tlsLayer->setServerCertificate(cert)) { // std::cout << "error\n";