1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 13:03:12 +02:00

Log the version of third-party libraries on load.

This commit is contained in:
Sadie Powell
2025-02-18 11:48:43 +00:00
parent 3bba87b655
commit 9f82a960e4
7 changed files with 15 additions and 1 deletions
+2
View File
@@ -525,6 +525,8 @@ public:
ModuleLDAP(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
me = this;
Log() << "Module was compiled against LDAP (" << LDAP_VENDOR_NAME << ") version " << LDAP_VENDOR_VERSION_MAJOR << "." << LDAP_VENDOR_VERSION_MINOR << "." << LDAP_VENDOR_VERSION_PATCH;
}
~ModuleLDAP()
+2 -1
View File
@@ -242,9 +242,10 @@ public:
{
me = this;
DThread = new DispatcherThread();
DThread->Start();
Log() << "Module was compiled against MySQL version " << (MYSQL_VERSION_ID / 10000) << "." << (MYSQL_VERSION_ID / 100 % 100) << "." << (MYSQL_VERSION_ID % 100) << " and is running against version " << mysql_get_client_info();
}
~ModuleSQL()
+4
View File
@@ -70,6 +70,10 @@ public:
pcre_regex_provider(this)
{
this->SetPermanent(true);
std::vector<char> pcre_version(16);
if (pcre2_config(PCRE2_CONFIG_VERSION, pcre_version.data()) >= 0)
Log() << "Module was compiled against PCRE2 version " << PCRE2_MAJOR << "." << PCRE2_MINOR << " and is running against version " << pcre_version.data();
}
~ModuleRegexPCRE()
+2
View File
@@ -62,6 +62,8 @@ public:
tre_regex_provider(this)
{
this->SetPermanent(true);
Log() << "Module was compiled against TRE version " << TRE_VERSION << " and is running against version " << tre_version();
}
~ModuleRegexTRE()
+1
View File
@@ -103,6 +103,7 @@ class ModuleSQLite final
public:
ModuleSQLite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR)
{
Log() << "Module was compiled against SQLite version " << SQLITE_VERSION << " and is running against version " << sqlite3_libversion();
}
~ModuleSQLite()
+2
View File
@@ -299,6 +299,8 @@ public:
{
me = this;
this->SetPermanent(true);
Log() << "Module was compiled against GnuTLS version " << GNUTLS_VERSION << " and is running against version " << gnutls_check_version(nullptr);
}
~GnuTLSModule()
+2
View File
@@ -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()