summaryrefslogtreecommitdiff
path: root/src/common/Cryptography/CryptoHash.h
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2024-08-07 18:13:31 +0200
committerGitHub <noreply@github.com>2024-08-07 18:13:31 +0200
commitfdd8ff6e04814a1b624cd1ff18093a2c9acaf47c (patch)
treef252968d8efb2201bee163658a8d83a38ac0b85c /src/common/Cryptography/CryptoHash.h
parent41366fcc69b65c1ecc0bba2cfa05ccb4c5969fa2 (diff)
refactor(Deps/OpenSSL): Deprecate OpenSSL 1.x (#19452)
* EOL
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 6b98c5cd5b..77c4a16cd2 100644
--- a/src/common/Cryptography/CryptoHash.h
+++ b/src/common/Cryptography/CryptoHash.h
@@ -34,13 +34,8 @@ namespace Acore::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, std::size_t DigestLength>