diff options
| author | 2024-08-19 00:01:18 +0100 | |
|---|---|---|
| committer | 2024-08-19 00:07:00 +0100 | |
| commit | 41bc99c6142d6672fec04f8a7a46851dfd2c3389 (patch) | |
| tree | d8c4209b7fa13bca8fc5231aa64ace3b4a3981db /src/modules/m_sslinfo.cpp | |
| parent | Add Numeric::push_fmt(...) as shorthand for push(INSP_FORMAT(...)). (diff) | |
Make it clear which is the current client fingerprint.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index b2d148cb5..f8b609dd0 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -370,8 +370,13 @@ public: { if (!cmd.operonlyfp || whois.IsSelfWhois() || whois.GetSource()->IsOper()) { + bool first = true; for (const auto& fingerprint : cert->GetFingerprints()) - whois.SendLine(RPL_WHOISCERTFP, INSP_FORMAT("has TLS client certificate fingerprint {}", fingerprint)); + { + whois.SendLine(RPL_WHOISCERTFP, INSP_FORMAT("has {}client certificate fingerprint {}", + first ? "" : "old ", fingerprint)); + first = false; + } } } } |
