Add support for SHA2-512 hash on Qt4 builds
[quassel.git] / src / core / storage.h
index 989f331..87e9b84 100644 (file)
@@ -43,13 +43,10 @@ public:
     };
 
     enum HashVersion {
-        sha1,
-#if QT_VERSION >= 0x050000
-        sha2_512,
-        latest=sha2_512
-#else
-        latest=sha1
-#endif
+        Sha1,
+        Sha2_512,
+        Latest=Sha2_512
+        
     };
 
 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);
 };