From 217752e4935090a8e40bed5ffdfff4cc545ae984 Mon Sep 17 00:00:00 2001 From: Christopher 'm4z' Holm Date: Sun, 15 Sep 2013 16:25:29 +0200 Subject: Add SSL cert info to connect class debug log. Closes #634. --- src/modules/m_sslinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 1a4b5c9a2..fc92bb17a 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -250,10 +250,12 @@ class ModuleSSLInfo : public Module, public Whois::EventListener if (myclass->config->getString("requiressl") == "trusted") { ok = (cert && cert->IsCAVerified()); + ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Class requires a trusted SSL cert. Client %s one.", (ok ? "has" : "does not have")); } else if (myclass->config->getBool("requiressl")) { ok = (cert != NULL); + ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Class requires any SSL cert. Client %s one.", (ok ? "has" : "does not have")); } if (!ok) -- cgit v1.2.3