Improve LibreSSL compatibility

This commit is contained in:
David Uhden Collado 2025-10-13 22:56:56 +02:00
parent 80840b761e
commit 29660b6745
No known key found for this signature in database
GPG key ID: 1A47E8A7D51FB3DA
4 changed files with 98 additions and 29 deletions

View file

@ -48,6 +48,8 @@ namespace i2p
namespace crypto
{
bool bn2buf (const BIGNUM * bn, uint8_t * buf, size_t len);
EVP_PKEY * GenerateECKey (int curve);
int GetEVPKeyCurveNID (const EVP_PKEY * pkey);
// DSA
#if I2PD_OPENSSL_GE_3 // since 3.0.0