Skip to content

Commit

Permalink
Refact: get_digest_request is a public function now
Browse files Browse the repository at this point in the history
  • Loading branch information
EstudianteGenerico047 committed Jul 14, 2024
1 parent 2594500 commit 62831ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> ,dns_msg: Vec<u8>, tsig_rr: ResourceRecord) -> Vec<u8> {
pub fn get_digest_request(mac: Vec<u8> ,dns_msg: Vec<u8>, tsig_rr: ResourceRecord) -> Vec<u8> {
let mut res: Vec<u8> = vec![];

if (mac.len() != 0) {
Expand Down

0 comments on commit 62831ba

Please sign in to comment.