diff --git a/core/device.cpp b/core/device.cpp index 5f908493d..5dd42a190 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -406,15 +406,15 @@ QString Device::encryptionInfo() const QCryptographicHash::Algorithm digestAlgorithm = QCryptographicHash::Algorithm::Sha1; QString localSha1 = QString::fromLatin1(KdeConnectConfig::instance()->certificate().digest(digestAlgorithm).toHex()); - for (int i=2 ; igetDeviceProperty(id(), "certificate").toStdString(); - QSslCertificate remoteCertificate = QSslCertificate(QByteArray(remotePem.c_str(), remotePem.size())); + QSslCertificate remoteCertificate = QSslCertificate(QByteArray(remotePem.c_str(), (int)remotePem.size())); QString remoteSha1 = QString::fromLatin1(remoteCertificate.digest(digestAlgorithm).toHex()); - for (int i=2 ; i