refactor(Deps/OpenSSL): Deprecate OpenSSL 1.x (#19452)

* EOL
This commit is contained in:
Kitzunu
2024-08-07 18:13:31 +02:00
committed by GitHub
parent 41366fcc69
commit fdd8ff6e04
7 changed files with 3 additions and 149 deletions

View File

@@ -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>