From 2c58fe736bc90270a5e40f13151641f55ef1c578 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 5 Sep 2018 09:51:03 -0400 Subject: [PATCH] fixed build error with openssl 1.1.1 --- libi2pd/Crypto.h | 2 +- libi2pd/Signature.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libi2pd/Crypto.h b/libi2pd/Crypto.h index ceaff30b..f8cd86a3 100644 --- a/libi2pd/Crypto.h +++ b/libi2pd/Crypto.h @@ -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 diff --git a/libi2pd/Signature.h b/libi2pd/Signature.h index 6b958107..7f5a53b9 100644 --- a/libi2pd/Signature.h +++ b/libi2pd/Signature.h @@ -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