Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions crates/optee-utee/src/object/enum_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,20 @@ impl ObjectEnumHandle {

/// Get the next object in an enumeration and returns information about the
/// object: type, size, identifier, etc.
pub fn get_next<T>(
pub fn get_next(
&mut self,
object_info: &mut ObjectInfo,
object_info: Option<&mut ObjectInfo>,
object_id: &mut [u8],
) -> Result<u32> {
let mut object_id_len: usize = 0;
let mut object_id_len = object_id.len();
let object_info = match object_info {
Some(a) => &mut a.raw,
None => core::ptr::null_mut(),
};
match unsafe {
raw::TEE_GetNextPersistentObject(
*self.raw,
&mut object_info.raw,
object_info,
object_id.as_mut_ptr() as _,
&mut object_id_len,
)
Expand Down
2 changes: 2 additions & 0 deletions crates/optee-utee/src/object/object_define.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ impl From<Whence> for raw::TEE_Whence {
#[repr(u32)]
pub enum ObjectStorageConstants {
Private = 0x00000001,
PrivateRee = 0x80000000,
PrivateRpmb = 0x80000100,
IllegalValue = 0x7FFFFFFF,
}

Expand Down
Loading