Skip to content

Commit

Permalink
Add getters for non-pub data
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter authored and tdittr committed Nov 14, 2024
1 parent 2816eb9 commit 0dd1cbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mac/frame/security/security_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ impl SecurityControl {
key_id_mode: KeyIdentifierMode::None,
}
}

/// Get the security level
pub fn security_level(&self) -> SecurityLevel {
self.security_level
}

/// Get the key id mode
pub fn key_id_mode(&self) -> KeyIdentifierMode {
self.key_id_mode
}
}

impl TryRead<'_> for SecurityControl {
Expand Down

0 comments on commit 0dd1cbd

Please sign in to comment.