From cdd1179c63bb892696adfad1818d65e3026916ca Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 28 Jan 2019 14:58:41 +0100 Subject: Increase password maximum length to 128 bytes from 64 bytes --- src/Common/Cache.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Common/Cache.c') diff --git a/src/Common/Cache.c b/src/Common/Cache.c index 2412ba59..4a4ebc9a 100644 --- a/src/Common/Cache.c +++ b/src/Common/Cache.c @@ -105,6 +105,16 @@ void AddPasswordToCache (Password *password, int pim) cacheEmpty = 0; } +void AddLegacyPasswordToCache (PasswordLegacy *password, int pim) +{ + Password inputPass = {0}; + inputPass.Length = password->Length; + memcpy (inputPass.Text, password->Text, password->Length); + + AddPasswordToCache (&inputPass, pim); + + burn (&inputPass, sizeof (inputPass)); +} void WipeCache () { -- cgit v1.2.3