From: Matthieu Gallien Date: Wed, 5 Oct 2022 09:20:02 +0000 (+0200) Subject: address review comments from @allexzander X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~192^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8ea75f49679224dbd4d3f0be999fe602c5b4751c;p=nextcloud-desktop.git address review comments from @allexzander Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 29b56c4b8..fd1f501a2 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1190,11 +1190,6 @@ void ClientSideEncryption::generateCSR(const AccountPtr &account, PKey keyPair) _certificate = QSslCertificate(cert.toLocal8Bit(), QSsl::Pem); _publicKey = _certificate.publicKey(); - const auto publicKeyString = cert.toLocal8Bit(); - Bio serverPublicKeyBio; - BIO_write(serverPublicKeyBio, publicKeyString.constData(), publicKeyString.size()); - const auto serverPublicKey = PKey::readPrivateKey(serverPublicKeyBio); - Bio certificateBio; const auto certificatePem = _certificate.toPem(); BIO_write(certificateBio, certificatePem.constData(), certificatePem.size());