diff options
author | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-10-05 16:43:56 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2022-10-24 11:25:41 +0300 |
commit | 5e81ab821e932992ffc64cc8337cb79047250adf (patch) | |
tree | a7b02950d9ea96e26ffd80c178edffd6276d670f /src | |
parent | b19b69df02c3b7a6ed06434bc5a21159ba22e7c2 (diff) |
fix more issues reported by sonarcloud
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libsync/clientsideencryption.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 9bd5919ea..e7b579d62 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1193,7 +1193,7 @@ void ClientSideEncryption::sendSignRequestCSR(const AccountPtr &account, PKey ke auto job = new SignPublicKeyApiJob(account, e2eeBaseUrl() + "public-key", this); job->setCsr(csrContent); - connect(job, &SignPublicKeyApiJob::jsonReceived, [this, account, keyPair = std::move(keyPair)](const QJsonDocument& json, int retCode) { + connect(job, &SignPublicKeyApiJob::jsonReceived, [this, account, keyPair = std::move(keyPair)](const QJsonDocument& json, const int retCode) { if (retCode == 200) { const auto cert = json.object().value("ocs").toObject().value("data").toObject().value("public-key").toString(); _certificate = QSslCertificate(cert.toLocal8Bit(), QSsl::Pem); @@ -1205,7 +1205,7 @@ void ClientSideEncryption::sendSignRequestCSR(const AccountPtr &account, PKey ke const auto x509Certificate = X509Certificate::readCertificate(certificateBio); if (const auto certificateCheckResult = X509_check_private_key(x509Certificate, keyPair) ; !certificateCheckResult) { - auto lastError = 1; + auto lastError = 1ul; while ((lastError= ERR_get_error())) { qCInfo(lcCse()) << ERR_lib_error_string(lastError); } |