1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-04 21:03:50 +00:00

Fix intantiation of Gnss_Crypto() with GnuTLS

This commit is contained in:
Carles Fernandez 2024-06-23 13:48:31 +02:00
parent a704c10044
commit 8ea75116ac
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 10 additions and 1 deletions

View File

@ -56,6 +56,15 @@
#endif #endif
Gnss_Crypto::Gnss_Crypto()
{
#if USE_OPENSSL_FALLBACK
#else // GnuTLS
gnutls_global_init();
#endif
}
Gnss_Crypto::Gnss_Crypto(const std::string& certFilePath, const std::string& merkleTreePath) Gnss_Crypto::Gnss_Crypto(const std::string& certFilePath, const std::string& merkleTreePath)
{ {
#if USE_OPENSSL_FALLBACK #if USE_OPENSSL_FALLBACK

View File

@ -36,7 +36,7 @@
class Gnss_Crypto class Gnss_Crypto
{ {
public: public:
Gnss_Crypto() = default; Gnss_Crypto();
Gnss_Crypto(const std::string& certFilePath, const std::string& merkleTreePath); Gnss_Crypto(const std::string& certFilePath, const std::string& merkleTreePath);
~Gnss_Crypto(); ~Gnss_Crypto();