From 0f5f2aef2ec216de68c25ec22ff00c95c6a88784 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 1 Jul 2025 00:00:42 +0100 Subject: [PATCH] Bump the minimum OpenSSL version to 1.1.1. Close #517. --- modules/extra/ssl_openssl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp index 1380fb97a..59db4dba3 100644 --- a/modules/extra/ssl_openssl.cpp +++ b/modules/extra/ssl_openssl.cpp @@ -12,7 +12,7 @@ #include "module.h" #include "modules/ssl.h" -#define OPENSSL_API_COMPAT 0x10100000L +#define OPENSSL_API_COMPAT 0x10101000L #define OPENSSL_NO_DEPRECATED #include @@ -126,7 +126,9 @@ public: SSL_CTX_set_session_id_context(client_ctx, reinterpret_cast(context_name.c_str()), context_name.length()); SSL_CTX_set_session_id_context(server_ctx, reinterpret_cast(context_name.c_str()), context_name.length()); +#ifdef OPENSSL_VERSION_STR Log(this) << "Module was compiled against OpenSSL version " << OPENSSL_VERSION_STR << " and is running against version " << OpenSSL_version(OPENSSL_VERSION_STRING); +#endif } ~SSLModule()