Skip to content

Commit

Permalink
fix: bug tsig bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
joalopez1206 committed Jul 15, 2024
1 parent afdebe2 commit 689601d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/message/rdata/tsig_rdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ impl ToBytes for TSigRdata{
bytes.push((time_signed >> 24) as u8);

bytes.push((time_signed >> 16) as u8);

bytes.push((time_signed >> 8) as u8);

bytes.push((time_signed >> 0) as u8);

let fudge = self.get_fudge();

Expand Down Expand Up @@ -557,7 +561,6 @@ mod tsig_rdata_test {
}

#[test]
#[ignore = "Fix test"]
fn to_bytes_test(){
let mut tsig_rdata = TSigRdata::new();

Expand Down Expand Up @@ -611,7 +614,6 @@ mod tsig_rdata_test {
}

#[test]
#[ignore = "Fix test"]
fn from_bytes_test(){
let bytes = vec![
//This is the string "hmac-md5.sig-alg.reg.int" in octal, terminated in 00
Expand Down

0 comments on commit 689601d

Please sign in to comment.