X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreidentity.cpp;h=5d2bb2e3475335338f44f155a4e8c8a1fafdde42;hp=1255411cc9c76f164d5c1e8c386c26cc8c1a9abc;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/core/coreidentity.cpp b/src/core/coreidentity.cpp index 1255411c..5d2bb2e3 100644 --- a/src/core/coreidentity.cpp +++ b/src/core/coreidentity.cpp @@ -22,7 +22,6 @@ #include "signalproxy.h" -INIT_SYNCABLE_OBJECT(CoreIdentity) CoreIdentity::CoreIdentity(IdentityId id, QObject *parent) : Identity(id, parent) #ifdef HAVE_SSL @@ -77,6 +76,8 @@ void CoreIdentity::synchronize(SignalProxy *proxy) void CoreIdentity::setSslKey(const QByteArray &encoded) { QSslKey key(encoded, QSsl::Rsa); + if (key.isNull()) + key = QSslKey(encoded, QSsl::Ec); if (key.isNull()) key = QSslKey(encoded, QSsl::Dsa); setSslKey(key); @@ -106,7 +107,7 @@ CoreIdentity &CoreIdentity::operator=(const CoreIdentity &identity) // ======================================== // CoreCertManager // ======================================== -INIT_SYNCABLE_OBJECT(CoreCertManager) + CoreCertManager::CoreCertManager(CoreIdentity &identity) : CertManager(identity.id()), identity(identity)