Make it clear which is the current client fingerprint.

This commit is contained in:
Sadie Powell 2024-08-19 00:01:18 +01:00
parent 15e7db5a21
commit 41bc99c614

View File

@ -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;
}
}
}
}