aboutsummaryrefslogtreecommitdiff
path: root/src/common/Cryptography/ARC4.h
diff options
context:
space:
mode:
authordaMaex <damaex@live.de>2022-06-14 23:32:34 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-05 18:49:13 +0200
commit4d1ae6cf06741570e9b84d830c875c7cb7d814df (patch)
tree63070f1ac4fe95f65c04a58f6a35f94e22cbfbf7 /src/common/Cryptography/ARC4.h
parent3fa46c6dc10459163aa9d225f27e59cb4cc7d498 (diff)
Core/Crypto: Fixed build with openssl 1.1
(cherry picked from commit 9368823c8dfa0587ef915d2f1e0aa443355d7854)
Diffstat (limited to 'src/common/Cryptography/ARC4.h')
-rw-r--r--src/common/Cryptography/ARC4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/Cryptography/ARC4.h b/src/common/Cryptography/ARC4.h
index d3a1bf18eea..faeefd5f2cc 100644
--- a/src/common/Cryptography/ARC4.h
+++ b/src/common/Cryptography/ARC4.h
@@ -38,7 +38,9 @@ namespace Trinity::Crypto
template <typename Container>
void UpdateData(Container& c) { UpdateData(std::data(c), std::size(c)); }
private:
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
EVP_CIPHER* _cipher;
+#endif
EVP_CIPHER_CTX* _ctx;
};
}