diff --git a/src/tsig.rs b/src/tsig.rs index e230e62e..89e94d3d 100644 --- a/src/tsig.rs +++ b/src/tsig.rs @@ -72,7 +72,7 @@ fn set_tsig_rd(name: String, original_id: u16, result: MacResult, //TODO: crear una función para simplificar la extracción de bits paa simplificar código // This function extracts the digest #[doc = r"This function recives a DNS message and generate the digest da. Requested by RFC 8945 4.3.3 "] -fn get_digest_request(mac: Vec ,dns_msg: Vec, tsig_rr: ResourceRecord) -> Vec { +pub fn get_digest_request(mac: Vec ,dns_msg: Vec, tsig_rr: ResourceRecord) -> Vec { let mut res: Vec = vec![]; if (mac.len() != 0) {