mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix review comments from @allexzander
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
7ffbd95636
commit
b9d4e7045e
@ -1202,10 +1202,11 @@ void ClientSideEncryption::sendSignRequestCSR(const AccountPtr &account, PKey ke
|
||||
const auto certificatePem = _certificate.toPem();
|
||||
BIO_write(certificateBio, certificatePem.constData(), certificatePem.size());
|
||||
const auto x509Certificate = X509Certificate::readCertificate(certificateBio);
|
||||
if (const auto certificateCheckResult = X509_check_private_key(x509Certificate, keyPair) ; !certificateCheckResult) {
|
||||
auto lastError = 1UL;
|
||||
while ((lastError= ERR_get_error())) {
|
||||
if (!X509_check_private_key(x509Certificate, keyPair)) {
|
||||
auto lastError = ERR_get_error();
|
||||
while (lastError) {
|
||||
qCInfo(lcCse()) << ERR_lib_error_string(lastError);
|
||||
lastError = ERR_get_error();
|
||||
}
|
||||
forgetSensitiveData(account);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user