Skip to content

Commit

Permalink
Refactor tsig.rs module and fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
joalopez1206 committed Jul 17, 2024
1 parent b3fbfa6 commit fe8d5b4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tsig.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::convert::TryInto;
use std::fmt::{self,Display,Debug};
use std::fmt::Debug;
//aquí debe ir todo lo relacionado a la implementación de tsig como módulo
use crypto::mac::MacResult;
use crate::domain_name::DomainName;
Expand All @@ -8,15 +7,14 @@ use crate::message::rclass::Rclass;
use crate::message::resource_record::{ResourceRecord, ToBytes};

use crate::message::{rdata::tsig_rdata::TSigRdata, DnsMessage,};
use crate::message::rdata::{tsig_rdata, Rdata};
use crate::message::rdata::Rdata;
use crypto::hmac::Hmac as crypto_hmac;
use crypto::mac::Mac as crypto_mac;
use hmac::{Hmac, Mac};
use crypto::{sha1::Sha1,sha2::Sha256};
use crate::message::rdata::a_rdata::ARdata;
use crate::message::rrtype::Rrtype;

type HmacSha256 = Hmac<Sha256>;



#[derive(Debug)]
Expand Down

0 comments on commit fe8d5b4

Please sign in to comment.