Skip to content

Commit

Permalink
kernel: process binary: add get_credential()
Browse files Browse the repository at this point in the history
For symmetry with `ProcessStandard`
  • Loading branch information
bradjc committed Jun 12, 2024
1 parent d5f490c commit 71920c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/src/process_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ impl ProcessBinary {
})
}

pub fn get_credential(&self) -> Option<TbfFooterV2Credentials> {
self.credential.get()
}

pub(crate) fn get_integrity_region_slice(&self) -> &'static [u8] {
unsafe {
core::slice::from_raw_parts(self.flash.as_ptr(), self.header.get_binary_end() as usize)
Expand Down

0 comments on commit 71920c3

Please sign in to comment.