Skip to content

Commit

Permalink
Merge pull request #5589 from nextcloud/backport/5566/stable-3.8
Browse files Browse the repository at this point in the history
[stable-3.8] in case server has no private key, let e2ee init fail
  • Loading branch information
mgallien authored Apr 11, 2023
2 parents a9c2194 + abd4217 commit 3d42d01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsync/clientsideencryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,12 @@ void ClientSideEncryption::getPrivateKeyFromServer(const AccountPtr &account)
decryptPrivateKey(account, key.toLocal8Bit());
} else if (retCode == 404) {
qCInfo(lcCse()) << "No private key on the server: setup is incomplete.";
emit initializationFinished();
return;
} else {
qCInfo(lcCse()) << "Error while requesting public key: " << retCode;
emit initializationFinished();
return;
}
});
job->start();
Expand Down

0 comments on commit 3d42d01

Please sign in to comment.