From 031e673c518b12cffb513650894d0cb767e2cfcf Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 13 May 2021 02:02:15 +0200 Subject: [PATCH] fixed: passwd winix function: pass_encrypted was not cleared if we are not using rsa for encrypting passwords anymore --- winixd/core/crypt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/winixd/core/crypt.cpp b/winixd/core/crypt.cpp index b552e87..3a0932d 100644 --- a/winixd/core/crypt.cpp +++ b/winixd/core/crypt.cpp @@ -335,10 +335,13 @@ void Crypt::PassHashCrypt(const std::wstring & salt, const std::wstring & path_t } - +/* + * we hashing user.password, may it would be better to get the password as a seperate argument? + */ void Crypt::PassHashCrypt(User & user) { user.pass_type = config->pass_type; + ClearString(user.pass_encrypted); empty.clear(); if( config->pass_hash_use_salt && !config->pass_hash_salt.empty() )