Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
- Timestamp:
- Apr 14, 2023 3:17:44 PM (22 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
r85718 r99404 6 6 7 7 **/ 8 9 8 10 9 #include <Uefi.h> … … 20 19 // Handle for the Security Architectural Protocol instance produced by this driver 21 20 // 22 EFI_HANDLE 21 EFI_HANDLE mSecurityArchProtocolHandle = NULL; 23 22 24 23 /** … … 65 64 ) 66 65 { 67 EFI_STATUS Status; 68 69 Status = ExecuteSecurity2Handlers (EFI_AUTH_OPERATION_AUTHENTICATION_STATE, 70 AuthenticationStatus, 71 File, 72 NULL, 73 0, 74 FALSE 75 ); 66 EFI_STATUS Status; 67 68 Status = ExecuteSecurity2Handlers ( 69 EFI_AUTH_OPERATION_AUTHENTICATION_STATE, 70 AuthenticationStatus, 71 File, 72 NULL, 73 0, 74 FALSE 75 ); 76 76 if (Status == EFI_SUCCESS) { 77 77 Status = ExecuteSecurityHandlers (AuthenticationStatus, File); … … 129 129 EFIAPI 130 130 Security2StubAuthenticate ( 131 IN CONST EFI_SECURITY2_ARCH_PROTOCOL *This,132 IN CONST EFI_DEVICE_PATH_PROTOCOL *File, OPTIONAL133 IN VOID *FileBuffer,134 IN UINTN FileSize,135 IN BOOLEAN BootPolicy131 IN CONST EFI_SECURITY2_ARCH_PROTOCOL *This, 132 IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL, 133 IN VOID *FileBuffer, 134 IN UINTN FileSize, 135 IN BOOLEAN BootPolicy 136 136 ) 137 137 { 138 EFI_STATUS 138 EFI_STATUS Status; 139 139 140 140 if (FileBuffer != NULL) { … … 145 145 } 146 146 147 return ExecuteSecurity2Handlers (EFI_AUTH_OPERATION_VERIFY_IMAGE | 148 EFI_AUTH_OPERATION_DEFER_IMAGE_LOAD | 149 EFI_AUTH_OPERATION_MEASURE_IMAGE | 150 EFI_AUTH_OPERATION_CONNECT_POLICY, 151 0, 152 File, 153 FileBuffer, 154 FileSize, 155 BootPolicy 156 ); 147 return ExecuteSecurity2Handlers ( 148 EFI_AUTH_OPERATION_VERIFY_IMAGE | 149 EFI_AUTH_OPERATION_DEFER_IMAGE_LOAD | 150 EFI_AUTH_OPERATION_MEASURE_IMAGE | 151 EFI_AUTH_OPERATION_CONNECT_POLICY, 152 0, 153 File, 154 FileBuffer, 155 FileSize, 156 BootPolicy 157 ); 157 158 } 158 159 … … 164 165 }; 165 166 166 EFI_SECURITY2_ARCH_PROTOCOL mSecurity2Stub = {167 EFI_SECURITY2_ARCH_PROTOCOL mSecurity2Stub = { 167 168 Security2StubAuthenticate 168 169 };
Note:
See TracChangeset
for help on using the changeset viewer.