X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;h=9ea9c1302dd935dc61c95e80c902f4871c327c35;hb=5745311bc102bf2361cee0f3a5c4d442a05ac64e;hp=5ca3129385dfdd994ee8480715b4ff35954ba0e9;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 5ca31293..9ea9c130 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -35,8 +35,10 @@ Cipher::~Cipher() bool Cipher::setKey(QByteArray key) { - if (key.isEmpty()) + if (key.isEmpty()) { + m_key.clear(); return false; + } if (key.mid(0, 4).toLower() == "ecb:") { @@ -471,6 +473,5 @@ bool Cipher::neededFeaturesAvailable() if (QCA::isSupported("blowfish-ecb") && QCA::isSupported("blowfish-cbc") && QCA::isSupported("dh")) return true; - qWarning() << "QCA provider plugin not found. It is usually provided by the qca-ossl plugin."; return false; }