aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/CryptoHash.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-06 12:51:08 +0200
committerShauren <shauren.trinity@gmail.com>2024-02-26 12:17:31 +0100
commit7ff70a6bff86d641c51da46285ff69ca3361cff3 (patch)
tree109f87a5242dc090a590277d27f835f41a1d10cd /src/common/Cryptography/CryptoHash.h
parent182cf7bc0e9af9785a43890bc3edbe39a9b6021d (diff)
Core/Crypto: Remove support for OpenSSL 1.0
(cherry picked from commit b8f18fad29df98d5e8dee1ba28cd5f01fbdf9832)
Diffstat (limited to 'src/common/Cryptography/CryptoHash.h')
-rw-r--r--src/common/Cryptography/CryptoHash.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/Cryptography/CryptoHash.h b/src/common/Cryptography/CryptoHash.h
index 49d421c7fb1..19bb776438c 100644
--- a/src/common/Cryptography/CryptoHash.h
+++ b/src/common/Cryptography/CryptoHash.h
@@ -35,13 +35,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 <GenericHashImpl::HashCreator HashCreator, size_t DigestLength>