mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:20:17 +00:00
fix(shim/hook): clarify const-ness of some parameters
This commit is contained in:
@@ -20,7 +20,7 @@ pub struct SecurityArchProtocol {
|
|||||||
pub file_authentication_state: unsafe extern "efiapi" fn(
|
pub file_authentication_state: unsafe extern "efiapi" fn(
|
||||||
this: *const SecurityArchProtocol,
|
this: *const SecurityArchProtocol,
|
||||||
status: u32,
|
status: u32,
|
||||||
path: *mut FfiDevicePath,
|
path: *const FfiDevicePath,
|
||||||
) -> Status,
|
) -> Status,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,8 +30,8 @@ pub struct SecurityArch2Protocol {
|
|||||||
/// Determines the file authentication.
|
/// Determines the file authentication.
|
||||||
pub file_authentication: unsafe extern "efiapi" fn(
|
pub file_authentication: unsafe extern "efiapi" fn(
|
||||||
this: *const SecurityArch2Protocol,
|
this: *const SecurityArch2Protocol,
|
||||||
path: *mut FfiDevicePath,
|
path: *const FfiDevicePath,
|
||||||
file_buffer: *mut u8,
|
file_buffer: *const u8,
|
||||||
file_size: usize,
|
file_size: usize,
|
||||||
boot_policy: bool,
|
boot_policy: bool,
|
||||||
) -> Status,
|
) -> Status,
|
||||||
@@ -87,7 +87,7 @@ impl SecurityHook {
|
|||||||
unsafe extern "efiapi" fn arch_file_authentication_state(
|
unsafe extern "efiapi" fn arch_file_authentication_state(
|
||||||
this: *const SecurityArchProtocol,
|
this: *const SecurityArchProtocol,
|
||||||
status: u32,
|
status: u32,
|
||||||
path: *mut FfiDevicePath,
|
path: *const FfiDevicePath,
|
||||||
) -> Status {
|
) -> Status {
|
||||||
// Verify the path is not null.
|
// Verify the path is not null.
|
||||||
if path.is_null() {
|
if path.is_null() {
|
||||||
@@ -145,8 +145,8 @@ impl SecurityHook {
|
|||||||
/// Takes the `path` and a file buffer to determine the verification.
|
/// Takes the `path` and a file buffer to determine the verification.
|
||||||
unsafe extern "efiapi" fn arch2_file_authentication(
|
unsafe extern "efiapi" fn arch2_file_authentication(
|
||||||
this: *const SecurityArch2Protocol,
|
this: *const SecurityArch2Protocol,
|
||||||
path: *mut FfiDevicePath,
|
path: *const FfiDevicePath,
|
||||||
file_buffer: *mut u8,
|
file_buffer: *const u8,
|
||||||
file_size: usize,
|
file_size: usize,
|
||||||
boot_policy: bool,
|
boot_policy: bool,
|
||||||
) -> Status {
|
) -> Status {
|
||||||
|
|||||||
Reference in New Issue
Block a user