diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index 7675ad6fa9be1..ba34300420a16 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1115,7 +1115,7 @@ void ClientSideEncryption::writeCertificate(const AccountPtr &account) job->start(); } -void ClientSideEncryption::writeCertificate(const AccountPtr &account, const QString &userId, const QSslCertificate certificate) +void ClientSideEncryption::writeCertificate(const AccountPtr &account, const QString &userId, const QSslCertificate &certificate) { const auto keyChainKey = AbstractCredentials::keychainKey(account->url().toString(), userId + e2e_cert + e2e_cert_sharing, userId); diff --git a/src/libsync/clientsideencryption.h b/src/libsync/clientsideencryption.h index 339ce49b6cbfa..be9ba70248498 100644 --- a/src/libsync/clientsideencryption.h +++ b/src/libsync/clientsideencryption.h @@ -155,7 +155,7 @@ public slots: void forgetSensitiveData(const OCC::AccountPtr &account); void getUsersPublicKeyFromServer(const AccountPtr &account, const QStringList &userIds); void fetchCertificateFromKeyChain(const OCC::AccountPtr &account, const QString &userId); - void writeCertificate(const AccountPtr &account, const QString &userId, const QSslCertificate certificate); + void writeCertificate(const AccountPtr &account, const QString &userId, const QSslCertificate &certificate); private slots: void generateKeyPair(const OCC::AccountPtr &account);