45 if (EFI_ERROR (Status)) {
46 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot get SetupMode variable: %r\n", Status);
50 if (SetupMode == USER_MODE) {
51 AsciiPrint (
"EnrollFromDefaultKeysApp: Skipped - USER_MODE\n");
56 if (EFI_ERROR (Status)) {
57 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot set CUSTOM_SECURE_BOOT_MODE: %r\n", Status);
62 if (EFI_ERROR (Status)) {
63 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot enroll db: %r\n", Status);
68 if (EFI_ERROR (Status)) {
69 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot enroll dbt: %r\n", Status);
73 if (EFI_ERROR (Status)) {
74 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot enroll dbx: %r\n", Status);
78 if (EFI_ERROR (Status)) {
79 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot enroll KEK: %r\n", Status);
84 if (EFI_ERROR (Status)) {
85 AsciiPrint (
"EnrollFromDefaultKeysApp: Cannot enroll PK: %r\n", Status);
90 if (EFI_ERROR (Status)) {
92 "EnrollFromDefaultKeysApp: Cannot set CustomMode to STANDARD_SECURE_BOOT_MODE\n"
93 "Please do it manually, otherwise system can be easily compromised\n"
109 if (EFI_ERROR (Status)) {
111 "EnrollFromDefaultKeysApp: Cannot set CustomMode to STANDARD_SECURE_BOOT_MODE\n"
112 "Please do it manually, otherwise system can be easily compromised\n"
EFI_STATUS EFIAPI UefiMain(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI SetSecureBootMode(IN UINT8 SecureBootMode)
EFI_STATUS EFIAPI GetSetupMode(OUT UINT8 *SetupMode)
EFI_STATUS EFIAPI DeleteDbx(VOID)
EFI_STATUS EFIAPI DeleteDb(VOID)
EFI_STATUS EFIAPI DeleteKEK(VOID)
EFI_STATUS EFIAPI DeleteDbt(VOID)
EFI_STATUS EFIAPI EnrollPKFromDefault(VOID)
EFI_STATUS EFIAPI EnrollKEKFromDefault(VOID)
EFI_STATUS EFIAPI EnrollDbFromDefault(VOID)
EFI_STATUS EFIAPI EnrollDbtFromDefault(VOID)
EFI_STATUS EFIAPI EnrollDbxFromDefault(VOID)
UINTN EFIAPI AsciiPrint(IN CONST CHAR8 *Format,...)