mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
fixed build error with openssl 1.1.1
This commit is contained in:
parent
6fe1de5d86
commit
2c58fe736b
@ -267,7 +267,7 @@ namespace crypto
|
||||
#else
|
||||
# define LEGACY_OPENSSL 0
|
||||
# if (OPENSSL_VERSION_NUMBER >= 0x010101000) // 1.1.1
|
||||
# define OPENSSL_EDDSA
|
||||
# define OPENSSL_EDDSA 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -394,7 +394,9 @@ namespace crypto
|
||||
~EDDSA25519Signer ();
|
||||
|
||||
void Sign (const uint8_t * buf, int len, uint8_t * signature) const;
|
||||
const uint8_t * GetPublicKey () const { return m_PublicKeyEncoded; };
|
||||
#if !OPENSSL_EDDSA
|
||||
const uint8_t * GetPublicKey () const { return m_PublicKeyEncoded; }; // for keys creation
|
||||
#endif
|
||||
|
||||
private:
|
||||
#if OPENSSL_EDDSA
|
||||
|
Loading…
x
Reference in New Issue
Block a user