Skip to content

Commit

Permalink
Use base16 for Ds (de)serialization.
Browse files Browse the repository at this point in the history
https://rfc-annotations.research.icann.org/rfc4034.html#section-5.3 says _"The Digest Type field MUST be represented as an unsigned decimal"_ so use base 16 for the related (de)serialiazation to be consistent with the display format.
  • Loading branch information
ximon18 authored Oct 28, 2024
1 parent ec99e6b commit 30a6fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdata/dnssec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ pub struct Ds<Octs> {
digest_type: DigestAlg,
#[cfg_attr(
feature = "serde",
serde(with = "crate::utils::base64::serde")
serde(with = "crate::utils::base16::serde")
)]
digest: Octs,
}
Expand Down

0 comments on commit 30a6fe3

Please sign in to comment.