X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;h=92b8fad139147a73ba37741f71c60901cc2f0fe2;hb=da885f3c8e152e9bdf573290adcf53bed58d95d1;hp=195936cbeafd6552f6b4d32496af6b28bd7ee231;hpb=6f0a153a674317d77233139fc50a2985af86e36e;p=quassel.git diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 195936cb..92b8fad1 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -13,6 +13,7 @@ */ #include "cipher.h" +#include "logger.h" Cipher::Cipher() @@ -449,3 +450,14 @@ QByteArray Cipher::b64ToByte(QByteArray text) } return decoded; } + +bool Cipher::neededFeaturesAvailable() +{ + QCA::Initializer init; + + 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; +}