From 30a6fe30c2b7c5fd76bbfc5eb1aefc21a1638166 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:28:51 +0100 Subject: [PATCH] Use base16 for Ds (de)serialization. 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. --- src/rdata/dnssec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdata/dnssec.rs b/src/rdata/dnssec.rs index fdb79dd52..55ada8d0b 100644 --- a/src/rdata/dnssec.rs +++ b/src/rdata/dnssec.rs @@ -1735,7 +1735,7 @@ pub struct Ds { digest_type: DigestAlg, #[cfg_attr( feature = "serde", - serde(with = "crate::utils::base64::serde") + serde(with = "crate::utils::base16::serde") )] digest: Octs, }