mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Don't early return in sensitive data deletion for clientsideencryption if the entries were never stored in keychain
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8483a4553a
commit
4ded5e1b38
1 changed files with 6 additions and 3 deletions
|
@ -1124,7 +1124,8 @@ void ClientSideEncryption::forgetSensitiveData(const AccountPtr &account)
|
|||
|
||||
void ClientSideEncryption::handlePrivateKeyDeleted(const QKeychain::Job* const incoming)
|
||||
{
|
||||
if (incoming->error() != QKeychain::NoError) {
|
||||
const auto error = incoming->error();
|
||||
if (error != QKeychain::NoError && error != QKeychain::EntryNotFound) {
|
||||
qCWarning(lcCse) << "Private key could not be deleted:" << incoming->errorString();
|
||||
return;
|
||||
}
|
||||
|
@ -1137,7 +1138,8 @@ void ClientSideEncryption::handlePrivateKeyDeleted(const QKeychain::Job* const i
|
|||
|
||||
void ClientSideEncryption::handleCertificateDeleted(const QKeychain::Job* const incoming)
|
||||
{
|
||||
if (incoming->error() != QKeychain::NoError) {
|
||||
const auto error = incoming->error();
|
||||
if (error != QKeychain::NoError && error != QKeychain::EntryNotFound) {
|
||||
qCWarning(lcCse) << "Certificate could not be deleted:" << incoming->errorString();
|
||||
return;
|
||||
}
|
||||
|
@ -1150,7 +1152,8 @@ void ClientSideEncryption::handleCertificateDeleted(const QKeychain::Job* const
|
|||
|
||||
void ClientSideEncryption::handleMnemonicDeleted(const QKeychain::Job* const incoming)
|
||||
{
|
||||
if (incoming->error() != QKeychain::NoError) {
|
||||
const auto error = incoming->error();
|
||||
if (error != QKeychain::NoError && error != QKeychain::EntryNotFound) {
|
||||
qCWarning(lcCse) << "Mnemonic could not be deleted:" << incoming->errorString();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue