From b8f18fad29df98d5e8dee1ba28cd5f01fbdf9832 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 6 Sep 2022 12:51:08 +0200 Subject: Core/Crypto: Remove support for OpenSSL 1.0 --- src/common/Cryptography/CryptoHash.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/common/Cryptography/CryptoHash.h') diff --git a/src/common/Cryptography/CryptoHash.h b/src/common/Cryptography/CryptoHash.h index a2cd393745e..e31578a8f46 100644 --- a/src/common/Cryptography/CryptoHash.h +++ b/src/common/Cryptography/CryptoHash.h @@ -34,13 +34,8 @@ namespace Trinity::Impl { typedef EVP_MD const* (*HashCreator)(); -#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L - static EVP_MD_CTX* MakeCTX() noexcept { return EVP_MD_CTX_create(); } - static void DestroyCTX(EVP_MD_CTX* ctx) { EVP_MD_CTX_destroy(ctx); } -#else static EVP_MD_CTX* MakeCTX() noexcept { return EVP_MD_CTX_new(); } static void DestroyCTX(EVP_MD_CTX* ctx) { EVP_MD_CTX_free(ctx); } -#endif }; template -- cgit v1.2.3