X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;h=92b8fad139147a73ba37741f71c60901cc2f0fe2;hp=195936cbeafd6552f6b4d32496af6b28bd7ee231;hb=393ac8b4bca9db98f297cb4756ef2e79364bf6f0;hpb=bb751e3ca71381c96f40974d574d0f317670fda6 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; +}