aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/RSA.h
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-05-12 15:48:39 +0200
committerShauren <shauren.trinity@gmail.com>2024-05-12 15:48:39 +0200
commit728e7c7fcf2435172a86e621746db5218bdda0cd (patch)
treebea95b46f6208eac21900f854c3e7b01fef28367 /src/common/Cryptography/RSA.h
parent500301b96256792357b13ef78d7e1836028cff26 (diff)
Core/Cryptography: dropped support for OpenSSL 1.1
OpenSSL 1.1 has been deprecated for quite some time now so it is time to put it to rest. Please upgrade to OpenSSL 3.x
Diffstat (limited to 'src/common/Cryptography/RSA.h')
-rw-r--r--src/common/Cryptography/RSA.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/Cryptography/RSA.h b/src/common/Cryptography/RSA.h
index 63f6b7b393c..9eb7da2320a 100644
--- a/src/common/Cryptography/RSA.h
+++ b/src/common/Cryptography/RSA.h
@@ -43,12 +43,8 @@ public:
virtual ~DigestGenerator() = default;
virtual std::unique_ptr<EVP_MD, EVP_MD_Deleter> GetGenerator() const = 0;
-#if OPENSSL_VERSION_NUMBER >= 0x30000000L
virtual OSSL_LIB_CTX* GetLib() const = 0;
virtual std::unique_ptr<OSSL_PARAM[]> GetParams() const = 0;
-#else
- virtual void PostInitCustomizeContext(EVP_MD_CTX* ctx) = 0;
-#endif
};
class TC_COMMON_API SHA256 : public DigestGenerator
@@ -56,12 +52,8 @@ public:
public:
std::unique_ptr<EVP_MD, EVP_MD_Deleter> GetGenerator() const override;
-#if OPENSSL_VERSION_NUMBER >= 0x30000000L
OSSL_LIB_CTX* GetLib() const override;
std::unique_ptr<OSSL_PARAM[]> GetParams() const override;
-#else
- void PostInitCustomizeContext(EVP_MD_CTX* ctx) override;
-#endif
};
class TC_COMMON_API HMAC_SHA256 : public DigestGenerator
@@ -71,12 +63,8 @@ public:
std::unique_ptr<EVP_MD, EVP_MD_Deleter> GetGenerator() const override;
-#if OPENSSL_VERSION_NUMBER >= 0x30000000L
OSSL_LIB_CTX* GetLib() const override;
std::unique_ptr<OSSL_PARAM[]> GetParams() const override;
-#else
- void PostInitCustomizeContext(EVP_MD_CTX* ctx) override;
-#endif
private:
uint8 const* _key;