aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/ARC4.h
diff options
context:
space:
mode:
authordaMaex <damaex@live.de>2022-06-14 21:39:22 +0200
committerShauren <shauren.trinity@gmail.com>2022-06-16 12:37:00 +0200
commit9fca5e9117317d6706fdf7d09fb86acaa3361129 (patch)
tree9cb12e0de3a44c4e48ed37437d1342925758b953 /src/common/Cryptography/ARC4.h
parent0b6f77a0062389ea0bc90427a56d2cc90eda6768 (diff)
Core/Crypto: Updated ARC4 code with openssl 3.0 support
Diffstat (limited to 'src/common/Cryptography/ARC4.h')
-rw-r--r--src/common/Cryptography/ARC4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/Cryptography/ARC4.h b/src/common/Cryptography/ARC4.h
index 5ce2db5aa3b..b4c461dbd6b 100644
--- a/src/common/Cryptography/ARC4.h
+++ b/src/common/Cryptography/ARC4.h
@@ -38,6 +38,10 @@ namespace Trinity::Crypto
template <typename Container>
void UpdateData(Container& c) { UpdateData(std::data(c), std::size(c)); }
private:
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+ OSSL_LIB_CTX* _libCtx;
+ OSSL_PROVIDER* _legacyProvider;
+#endif
EVP_CIPHER_CTX* _ctx;
};
}