Batch request capabilities during negotiation
[quassel.git] / src / core / storage.h
index 9371529..71492d5 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 by the Quassel Project                        *
+ *   Copyright (C) 2005-2016 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -43,8 +43,10 @@ public:
     };
 
     enum HashVersion {
-        sha1,
-        latest=sha1
+        Sha1,
+        Sha2_512,
+        Latest=Sha2_512
+        
     };
 
 public slots:
@@ -419,6 +421,10 @@ protected:
 private:
     QString hashPasswordSha1(const QString &password);
     bool checkHashedPasswordSha1(const QString &password, const QString &hashedPassword);
+
+    QString hashPasswordSha2_512(const QString &password);
+    bool checkHashedPasswordSha2_512(const QString &password, const QString &hashedPassword);
+    QString sha2_512(const QString &input);
 };