1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

Fixes for OpenSSL 3.0

This commit is contained in:
Carles Fernandez 2023-06-12 10:15:48 +02:00
parent bece57d226
commit 45196a5251
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -300,7 +300,11 @@ void Gnss_Crypto::readPublicKeyFromPEM(const std::string& filePath)
return;
}
// Load the public key from the BIO
#if USE_OPENSSL_3
d_PublicKey = PEM_read_bio_PUBKEY(bio, nullptr, nullptr, nullptr);
#else
d_PublicKey = PEM_read_bio_EC_PUBKEY(bio, nullptr, nullptr, nullptr);
#endif
BIO_free(bio);
if (d_PublicKey == nullptr)
{