diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2024-08-07 18:13:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 18:13:31 +0200 |
commit | fdd8ff6e04814a1b624cd1ff18093a2c9acaf47c (patch) | |
tree | f252968d8efb2201bee163658a8d83a38ac0b85c /src/common/Cryptography/CryptoHash.h | |
parent | 41366fcc69b65c1ecc0bba2cfa05ccb4c5969fa2 (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.h | 5 |
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> |