whois: show client-cert fingerprint (276) to everyone, not just opers/self
This commit is contained in:
parent
009bea734a
commit
f36f803d42
1 changed files with 7 additions and 8 deletions
|
|
@ -416,15 +416,14 @@ impl Command for Whois {
|
|||
&format!("{nick} :is using a secure connection{detail}"),
|
||||
);
|
||||
}
|
||||
// client-cert fingerprint (CertFP) — shown to the user themselves and opers
|
||||
// client-cert fingerprint (CertFP) — visible to everyone; it's derived from
|
||||
// the certificate the client presents in the handshake, not a secret.
|
||||
if let Some(fp) = &certfp {
|
||||
if is_self || asker_oper {
|
||||
s.numeric(
|
||||
uid,
|
||||
RPL_WHOISCERTFP,
|
||||
&format!("{nick} :has client certificate fingerprint {fp}"),
|
||||
);
|
||||
}
|
||||
s.numeric(
|
||||
uid,
|
||||
RPL_WHOISCERTFP,
|
||||
&format!("{nick} :has client certificate fingerprint {fp}"),
|
||||
);
|
||||
}
|
||||
// 317: idle time + signon time (hidewhois may suppress it)
|
||||
if !(hide && crate::modules::hidewhois::hide_idle(s)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue