summaryrefslogtreecommitdiff
path: root/modules/extra/ssl_openssl.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-18 11:48:43 +0000
committerSadie Powell <sadie@witchery.services>2025-02-18 11:48:43 +0000
commit9f82a960e44c5db3d2e64bdda099823b3078c90d (patch)
tree8890673c0c4e0787359224d6768a7818d31661ae /modules/extra/ssl_openssl.cpp
parent3bba87b655a5c7d5f5721a5a7fc018f30f1390f2 (diff)
Log the version of third-party libraries on load.
Diffstat (limited to 'modules/extra/ssl_openssl.cpp')
-rw-r--r--modules/extra/ssl_openssl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp
index 45ea0714d..28e734e44 100644
--- a/modules/extra/ssl_openssl.cpp
+++ b/modules/extra/ssl_openssl.cpp
@@ -125,6 +125,8 @@ public:
Anope::string context_name = "Anope";
SSL_CTX_set_session_id_context(client_ctx, reinterpret_cast<const unsigned char *>(context_name.c_str()), context_name.length());
SSL_CTX_set_session_id_context(server_ctx, reinterpret_cast<const unsigned char *>(context_name.c_str()), context_name.length());
+
+ Log() << "Module was compiled against OpenSSL version " << OPENSSL_VERSION_STR << " and is running against version " << OpenSSL_version(OPENSSL_VERSION_STRING);
}
~SSLModule()