summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-06-16 02:53:22 +0100
committerSadie Powell <sadie@witchery.services>2020-06-16 03:14:32 +0100
commit6d3e316234f47468cd15bc9bdff66e2a76fa4cd6 (patch)
tree677fd97b02a0cf1f7c4727c733f63c8a9cd7c378
parent040b16dd6a9cab6ea1ec78eb2a402c7f29b1c09c (diff)
Improve SSL module debug logging.
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp3
-rw-r--r--src/modules/extra/m_ssl_mbedtls.cpp3
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 5452a29ae..0846aaa2d 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -1319,7 +1319,10 @@ class ModuleSSLGnuTLS : public Module
{
ConfigTag* tag = i->second;
if (!stdalgo::string::equalsci(tag->getString("provider"), "gnutls"))
+ {
+ ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Ignoring non-GnuTLS <sslprofile> tag at " + tag->getTagLocation());
continue;
+ }
std::string name = tag->getString("name");
if (name.empty())
diff --git a/src/modules/extra/m_ssl_mbedtls.cpp b/src/modules/extra/m_ssl_mbedtls.cpp
index c6cbc8a33..83b9d0595 100644
--- a/src/modules/extra/m_ssl_mbedtls.cpp
+++ b/src/modules/extra/m_ssl_mbedtls.cpp
@@ -893,7 +893,10 @@ class ModuleSSLmbedTLS : public Module
{
ConfigTag* tag = i->second;
if (!stdalgo::string::equalsci(tag->getString("provider"), "mbedtls"))
+ {
+ ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Ignoring non-mbedTLS <sslprofile> tag at " + tag->getTagLocation());
continue;
+ }
std::string name = tag->getString("name");
if (name.empty())
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 8f29df1e7..0c6122b4d 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -1004,7 +1004,10 @@ class ModuleSSLOpenSSL : public Module
{
ConfigTag* tag = i->second;
if (!stdalgo::string::equalsci(tag->getString("provider"), "openssl"))
+ {
+ ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Ignoring non-OpenSSL <sslprofile> tag at " + tag->getTagLocation());
continue;
+ }
std::string name = tag->getString("name");
if (name.empty())