aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/RSA.h
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-05-12 15:48:39 +0200
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:59:07 +0200
commit333d5751a9615cc98cda6820a446056bba2170d6 (patch)
tree50909d7cc09fcffed9ac9ef6c8f1578434dde947 /src/common/Cryptography/RSA.h
parentf200b22d8f9b874c164122f07ba70b2ce695bd5b (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 (cherry picked from commit 728e7c7fcf2435172a86e621746db5218bdda0cd)
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;