X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclientidentity.cpp;h=8928384f1014babe5318e6102946717e643c79c6;hb=7b80c9c6e57bfd8ac81034e6cec1527e6be50da6;hp=eb64a12ac5a306efe2bff6d2df44ff1a41eff11c;hpb=04315f46a16fc3627218377071e008b6b9744992;p=quassel.git diff --git a/src/client/clientidentity.cpp b/src/client/clientidentity.cpp index eb64a12a..8928384f 100644 --- a/src/client/clientidentity.cpp +++ b/src/client/clientidentity.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -111,6 +111,10 @@ void CertIdentity::markClean() void ClientCertManager::setSslKey(const QByteArray &encoded) { QSslKey key(encoded, QSsl::Rsa); +#if QT_VERSION >= 0x050500 + if (key.isNull() && Client::isCoreFeatureEnabled(Quassel::Feature::EcdsaCertfpKeys)) + key = QSslKey(encoded, QSsl::Ec); +#endif if (key.isNull()) key = QSslKey(encoded, QSsl::Dsa); _certIdentity->setSslKey(key);