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>2022-09-06 12:51:08 +0200
commitb8f18fad29df98d5e8dee1ba28cd5f01fbdf9832 (patch)
treeedc41a74a43855ce71ddfb75442795a2f15d8f84 /src/common/Cryptography/CryptoHash.h
parent0a496d1f2768e9b6f9d6825c5dd35a162b42a308 (diff)
Core/Crypto: Remove support for OpenSSL 1.0
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 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 <GenericHashImpl::HashCreator HashCreator, size_t DigestLength>