diff --git a/src/message/rdata/rrsig_rdata.rs b/src/message/rdata/rrsig_rdata.rs index 5b40dee4..fceb993c 100644 --- a/src/message/rdata/rrsig_rdata.rs +++ b/src/message/rdata/rrsig_rdata.rs @@ -1,7 +1,7 @@ use crate::message::resource_record::{FromBytes, ToBytes}; use crate::domain_name::DomainName; use crate::message::rrtype::Rrtype; - +use base64; use std::fmt; #[derive(Clone, Debug, PartialEq)] @@ -142,8 +142,9 @@ impl FromBytes> for RRSIGRdata { signature.push(bytes[i]); i += 1; } - let signature = String::from_utf8(signature).unwrap(); - rrsig_rdata.set_signature(signature); + let signature_b64 = base64::encode(signature); + //let signature = String::from_utf8(signature).unwrap(); + rrsig_rdata.set_signature(signature_b64); Ok(rrsig_rdata) }