cargo fmt

This commit is contained in:
Cooper Quintin
2025-06-24 17:19:53 -07:00
committed by Will Greenberg
parent 790c0963cd
commit b923d9d5a6
3 changed files with 16 additions and 14 deletions

View File

@@ -10,8 +10,8 @@ use crate::{diag::MessagesContainer, gsmtap_parser};
use super::{
connection_redirect_downgrade::ConnectionRedirect2GDowngradeAnalyzer,
imsi_requested::ImsiRequestedAnalyzer, information_element::InformationElement,
null_cipher::NullCipherAnalyzer, priority_2g_downgrade::LteSib6And7DowngradeAnalyzer,
nas_null_cipher::NasNullCipherAnalyzer,
nas_null_cipher::NasNullCipherAnalyzer, null_cipher::NullCipherAnalyzer,
priority_2g_downgrade::LteSib6And7DowngradeAnalyzer,
};
#[derive(Debug, Clone, Deserialize, Serialize)]
@@ -31,7 +31,7 @@ impl Default for AnalyzerConfig {
connection_redirect_2g_downgrade: true,
lte_sib6_and_7_downgrade: true,
null_cipher: true,
nas_null_cipher: true
nas_null_cipher: true,
}
}
}

View File

@@ -3,7 +3,7 @@ pub mod connection_redirect_downgrade;
pub mod imsi_provided;
pub mod imsi_requested;
pub mod information_element;
pub mod null_cipher;
pub mod nas_null_cipher;
pub mod null_cipher;
pub mod priority_2g_downgrade;
pub mod util;

View File

@@ -29,7 +29,9 @@ impl Analyzer for NasNullCipherAnalyzer {
}
fn get_description(&self) -> Cow<str> {
Cow::from("Tests whether the MME requests to use a null cipher in the security mode command")
Cow::from(
"Tests whether the MME requests to use a null cipher in the security mode command",
)
}
fn analyze_information_element(&mut self, ie: &InformationElement) -> Option<Event> {
@@ -44,15 +46,15 @@ impl Analyzer for NasNullCipherAnalyzer {
if let NASMessage::EMMMessage(EMMMessage::EMMSecurityModeCommand(req)) = payload {
if req.nas_sec_algo.inner.ciph_algo == EPSEncryptionAlgorithmEEA0Null {
return Some(Event {
event_type: EventType::QualitativeWarning {
severity: Severity::High,
},
message: format!(
"NAS Security mode command requested null cipher(packet {})",
self.packet_num
),
});
return Some(Event {
event_type: EventType::QualitativeWarning {
severity: Severity::High,
},
message: format!(
"NAS Security mode command requested null cipher(packet {})",
self.packet_num
),
});
}
}
None