From a93be3ed1c04f855ee95c54e09bf4c4a1d9cc7c9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 18 Jul 2022 03:58:22 -0700 Subject: [PATCH] fix compilation without deprecated OpenSSL APIs (#3690) Missing headers and function. Signed-off-by: Rosen Penev --- Crypto/src/Envelope.cpp | 3 +++ NetSSL_OpenSSL/src/Context.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Crypto/src/Envelope.cpp b/Crypto/src/Envelope.cpp index 983edf371..03410af35 100644 --- a/Crypto/src/Envelope.cpp +++ b/Crypto/src/Envelope.cpp @@ -14,6 +14,9 @@ #include "Poco/Crypto/Envelope.h" +#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#define EVP_CIPHER_CTX_init(a) 1 +#endif namespace Poco { namespace Crypto { diff --git a/NetSSL_OpenSSL/src/Context.cpp b/NetSSL_OpenSSL/src/Context.cpp index 6385fe99c..088ba1132 100644 --- a/NetSSL_OpenSSL/src/Context.cpp +++ b/NetSSL_OpenSSL/src/Context.cpp @@ -23,6 +23,8 @@ #include "Poco/Format.h" #include "Poco/Error.h" #include +#include +#include #include #include #include