From 7361b87130ff4e504f72be8c2a16bb4c2a1d51be Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 5 Oct 2009 20:03:20 +0000 Subject: [PATCH] Remove the old, unused function CUtils::GetHashPass() git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1642 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 15 --------------- Utils.h | 1 - 2 files changed, 16 deletions(-) diff --git a/Utils.cpp b/Utils.cpp index 6efe5c9c..0dd9c821 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -148,21 +148,6 @@ unsigned long CUtils::GetLongIP(const CString& sIP) { return ret; } -CString CUtils::GetHashPass() { - while (true) { - CString pass1 = CUtils::GetPass("Enter Password"); - CString pass2 = CUtils::GetPass("Confirm Password"); - - if (!pass1.Equals(pass2, true)) { - CUtils::PrintError("The supplied passwords did not match"); - } else if (pass1.empty()) { - CUtils::PrintError("You can not use an empty password"); - } else { - return pass1.MD5(); - } - } -} - // If you change this here and in GetSaltedHashPass(), // don't forget CUser::HASH_DEFAULT! const CString CUtils::sDefaultHash = "sha256"; diff --git a/Utils.h b/Utils.h index 337f7ec6..4b1ce0e7 100644 --- a/Utils.h +++ b/Utils.h @@ -63,7 +63,6 @@ public: static const CString sDefaultHash; - static CString GetHashPass(); static CString GetSaltedHashPass(CString& sSalt); static CString GetSalt(); static CString SaltedMD5Hash(const CString& sPass, const CString& sSalt);