diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index cad0a75827006..327a369cc0287 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1,5 +1,7 @@ #include "clientsideencryption.h" +#define OPENSSL_SUPPRESS_DEPRECATED + #include #include #include @@ -34,6 +36,8 @@ #include #include +#include + #include #include #include @@ -874,7 +878,15 @@ QByteArray encryptStringAsymmetric(EVP_PKEY *publicKey, const QByteArray& data) } -ClientSideEncryption::ClientSideEncryption() = default; +ClientSideEncryption::ClientSideEncryption() +{ + auto defaultProvider = OSSL_PROVIDER_load(NULL, "default"); + + qCInfo(lcCse()) << "loaded provider" << defaultProvider; + + _sslEngine = ENGINE_new(); + qCInfo(lcCse()) << "ssl engine" << _sslEngine; +} const QSslKey &ClientSideEncryption::getPublicKey() const { diff --git a/src/libsync/clientsideencryption.h b/src/libsync/clientsideencryption.h index cc8e4892f1142..9239e6354e173 100644 --- a/src/libsync/clientsideencryption.h +++ b/src/libsync/clientsideencryption.h @@ -222,6 +222,8 @@ private slots: bool _newMnemonicGenerated = false; bool isInitialized = false; + + ENGINE *_sslEngine = nullptr; }; /* Generates the Metadata for the folder */