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:
parent
bece57d226
commit
45196a5251
@ -300,7 +300,11 @@ void Gnss_Crypto::readPublicKeyFromPEM(const std::string& filePath)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Load the public key from the BIO
|
// 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);
|
d_PublicKey = PEM_read_bio_EC_PUBKEY(bio, nullptr, nullptr, nullptr);
|
||||||
|
#endif
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
if (d_PublicKey == nullptr)
|
if (d_PublicKey == nullptr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user