From 6d3e316234f47468cd15bc9bdff66e2a76fa4cd6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 16 Jun 2020 02:53:22 +0100 Subject: Improve SSL module debug logging. --- src/modules/extra/m_ssl_gnutls.cpp | 3 +++ src/modules/extra/m_ssl_mbedtls.cpp | 3 +++ src/modules/extra/m_ssl_openssl.cpp | 3 +++ 3 files changed, 9 insertions(+) (limited to 'src/modules') 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 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 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 tag at " + tag->getTagLocation()); continue; + } std::string name = tag->getString("name"); if (name.empty()) -- cgit v1.2.3