X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=87e9b8421e0019df3469af0df050f8bd22bfe726;hp=9b9ce4f04e921e1e4986936970eb963373e5dded;hb=refs%2Fpull%2F110%2Fhead;hpb=d8b10ef03c8edcec9e81ee126fd5a83e350b1571 diff --git a/src/core/storage.h b/src/core/storage.h index 9b9ce4f0..87e9b842 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -44,12 +44,9 @@ public: enum HashVersion { Sha1, -#if QT_VERSION >= 0x050000 Sha2_512, Latest=Sha2_512 -#else - Latest=Sha1 -#endif + }; public slots: @@ -425,10 +422,9 @@ private: QString hashPasswordSha1(const QString &password); bool checkHashedPasswordSha1(const QString &password, const QString &hashedPassword); -#if QT_VERSION >= 0x050000 QString hashPasswordSha2_512(const QString &password); bool checkHashedPasswordSha2_512(const QString &password, const QString &hashedPassword); -#endif + QString sha2_512(const QString &input); };