X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreidentity.cpp;h=b7cd6d09c34d737397bcaf511744dba66c7070fb;hp=1255411cc9c76f164d5c1e8c386c26cc8c1a9abc;hb=c27d5bfbe80bfeb583a25404f4ccee4b70b010e0;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/core/coreidentity.cpp b/src/core/coreidentity.cpp index 1255411c..b7cd6d09 100644 --- a/src/core/coreidentity.cpp +++ b/src/core/coreidentity.cpp @@ -77,6 +77,10 @@ void CoreIdentity::synchronize(SignalProxy *proxy) void CoreIdentity::setSslKey(const QByteArray &encoded) { QSslKey key(encoded, QSsl::Rsa); +#if QT_VERSION >= 0x050500 + if (key.isNull()) + key = QSslKey(encoded, QSsl::Ec); +#endif if (key.isNull()) key = QSslKey(encoded, QSsl::Dsa); setSslKey(key);