Skip to content

Commit

Permalink
added ZSK/KSK label on DNSKEY
Browse files Browse the repository at this point in the history
  • Loading branch information
dandyvica committed Dec 4, 2024
1 parent 31ce220 commit c1584fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dns/rfc/dnskey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ new_rd_length!(DNSKEY);

impl fmt::Display for DNSKEY {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let flags = match self.flags {
256 => "ZSK",
257 => "KSK",
_ => &format!("{}", self.flags),
};

write!(
f,
"{} {} {} {}",
self.flags,
flags,
self.protocol,
self.algorithm,
self.key.to_base64()
Expand Down

0 comments on commit c1584fa

Please sign in to comment.