diff options
author | Christopher 'm4z' Holm <them4z@gmail.com> | 2013-09-15 16:25:29 +0200 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-12-03 15:45:19 +0000 |
commit | 217752e4935090a8e40bed5ffdfff4cc545ae984 (patch) | |
tree | 317fafa879e5d894b45fc37f84c11693856c4bdd | |
parent | ecb7891090387accc01d01afc7e2d722fd02889a (diff) |
Add SSL cert info to connect class debug log.
Closes #634.
-rw-r--r-- | src/modules/m_sslinfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) |