mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
09602731f7
commit
a1a1a6f989
|
@ -59,11 +59,11 @@ void Core::useOtherPassword(PasswordType type)
|
|||
|
||||
void Core::clearPassword(PasswordType passtype)
|
||||
{
|
||||
if (pwsaltedkeys[passtype])
|
||||
{
|
||||
PasswordType other = (passtype == ptMain) ? ptHistory : ptMain;
|
||||
if (pwsaltedkeys[passtype] == pwsaltedkeys[other])
|
||||
pwsaltedkeys[other] = nullptr;
|
||||
delete[] pwsaltedkeys[passtype];
|
||||
pwsaltedkeys[passtype] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
QByteArray Core::encryptData(const QByteArray& data, PasswordType passtype)
|
||||
|
|
Loading…
Reference in New Issue
Block a user