From f0dd963ab37b2ff412b4b1e0b9459d61d42ab9d4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 1 Dec 2013 21:50:29 +0000 Subject: method for checking a password git-svn-id: http://svn.miranda-ng.org/main/trunk@7027 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdcrypt/encrypt.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/stdcrypt/encrypt.cpp') diff --git a/src/core/stdcrypt/encrypt.cpp b/src/core/stdcrypt/encrypt.cpp index 5be76f1c54..1616ac376f 100644 --- a/src/core/stdcrypt/encrypt.cpp +++ b/src/core/stdcrypt/encrypt.cpp @@ -104,6 +104,12 @@ void CStdCrypt::purgeKey(void) m_valid = false; } +// checks the master password (in utf-8) +bool CStdCrypt::checkPassword(const char *pszPassword) +{ + return m_password == pszPassword; +} + // sets the master password (in utf-8) void CStdCrypt::setPassword(const char *pszPassword) { -- cgit v1.2.3