Skip to content

Commit

Permalink
refactor: move asn1 parsing to utils folder to make accessible for mu…
Browse files Browse the repository at this point in the history
…ltiple modules (#275)
  • Loading branch information
latonis authored Dec 30, 2024
1 parent 4d59017 commit cd61206
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/src/modules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,5 @@ pub mod mods {
super::BUILTIN_MODULES.keys().copied()
}
}

pub(crate) mod utils;
2 changes: 1 addition & 1 deletion lib/src/modules/pe/authenticode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use x509_parser::x509::{AlgorithmIdentifier, SubjectPublicKeyInfo, X509Name};
#[cfg(feature = "logging")]
use log::error;

use crate::modules::pe::asn1::{
use crate::modules::utils::asn1::{
oid, oid_to_object_identifier, oid_to_str, Attribute, Certificate,
ContentInfo, DigestInfo, SignedData, SignerInfo, SpcIndirectDataContent,
SpcSpOpusInfo, TstInfo,
Expand Down
1 change: 0 additions & 1 deletion lib/src/modules/pe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use crate::types::Struct;
#[cfg(test)]
mod tests;

mod asn1;
mod authenticode;
pub mod parser;
mod rva2off;
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/src/modules/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod asn1;

0 comments on commit cd61206

Please sign in to comment.