OpenCore
1.0.4
OpenCore Bootloader
|
#include "NetworkBootInternal.h"
Go to the source code of this file.
Macros | |
#define | ENROLL_CERT L"enroll-cert" |
#define | DELETE_CERT L"delete-cert" |
#define | DELETE_ALL_CERTS L"delete-all-certs" |
Functions | |
STATIC VOID | InternalFreePickerEntry (IN OC_PICKER_ENTRY *Entry) |
STATIC VOID EFIAPI | FreeNetworkBootEntries (IN OC_PICKER_ENTRY **Entries, IN UINTN NumEntries) |
STATIC EFI_STATUS | InternalAddEntry (OC_FLEX_ARRAY *FlexPickerEntries, CHAR16 *Description, EFI_HANDLE Handle, CHAR16 *HttpBootUri, BOOLEAN IsIPv4, BOOLEAN IsHttpBoot) |
STATIC EFI_STATUS EFIAPI | GetNetworkBootEntries (IN OUT OC_PICKER_CONTEXT *PickerContext, IN CONST EFI_HANDLE Device OPTIONAL, OUT OC_PICKER_ENTRY **Entries, OUT UINTN *NumEntries) |
STATIC EFI_STATUS | EnrollCerts (OC_FLEX_ARRAY *ParsedLoadOptions) |
EFI_STATUS EFIAPI | UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
BOOLEAN | gRequireHttpsUri |
STATIC BOOLEAN | mAllowPxeBoot |
STATIC BOOLEAN | mAllowHttpBoot |
STATIC BOOLEAN | mAllowIpv4 |
STATIC BOOLEAN | mAllowIpv6 |
STATIC BOOLEAN | mAuxEntries |
STATIC CHAR16 * | mHttpBootUri |
STATIC CHAR16 | PxeBootId [] = L"PXE Boot IPv" |
STATIC CHAR16 | HttpBootId [] = L"HTTP Boot IPv" |
STATIC OC_BOOT_ENTRY_PROTOCOL | mNetworkBootEntryProtocol |
Boot entry protocol handler for PXE and HTTP Boot.
Copyright (c) 2024, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file OpenNetworkBoot.c.
#define DELETE_ALL_CERTS L"delete-all-certs" |
Definition at line 12 of file OpenNetworkBoot.c.
#define DELETE_CERT L"delete-cert" |
Definition at line 11 of file OpenNetworkBoot.c.
#define ENROLL_CERT L"enroll-cert" |
Definition at line 10 of file OpenNetworkBoot.c.
STATIC EFI_STATUS EnrollCerts | ( | OC_FLEX_ARRAY * | ParsedLoadOptions | ) |
Definition at line 269 of file OpenNetworkBoot.c.
STATIC VOID EFIAPI FreeNetworkBootEntries | ( | IN OC_PICKER_ENTRY ** | Entries, |
IN UINTN | NumEntries ) |
Definition at line 62 of file OpenNetworkBoot.c.
STATIC EFI_STATUS EFIAPI GetNetworkBootEntries | ( | IN OUT OC_PICKER_CONTEXT * | PickerContext, |
IN CONST EFI_HANDLE Device | OPTIONAL, | ||
OUT OC_PICKER_ENTRY ** | Entries, | ||
OUT UINTN * | NumEntries ) |
Definition at line 164 of file OpenNetworkBoot.c.
STATIC EFI_STATUS InternalAddEntry | ( | OC_FLEX_ARRAY * | FlexPickerEntries, |
CHAR16 * | Description, | ||
EFI_HANDLE | Handle, | ||
CHAR16 * | HttpBootUri, | ||
BOOLEAN | IsIPv4, | ||
BOOLEAN | IsHttpBoot ) |
Definition at line 85 of file OpenNetworkBoot.c.
STATIC VOID InternalFreePickerEntry | ( | IN OC_PICKER_ENTRY * | Entry | ) |
Definition at line 28 of file OpenNetworkBoot.c.
EFI_STATUS EFIAPI UefiMain | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable ) |
Definition at line 429 of file OpenNetworkBoot.c.
BOOLEAN gRequireHttpsUri |
Set if we should enforce https only within this driver.
Definition at line 14 of file OpenNetworkBoot.c.
STATIC CHAR16 HttpBootId[] = L"HTTP Boot IPv" |
Definition at line 24 of file OpenNetworkBoot.c.
STATIC BOOLEAN mAllowHttpBoot |
Definition at line 17 of file OpenNetworkBoot.c.
STATIC BOOLEAN mAllowIpv4 |
Definition at line 18 of file OpenNetworkBoot.c.
STATIC BOOLEAN mAllowIpv6 |
Definition at line 19 of file OpenNetworkBoot.c.
STATIC BOOLEAN mAllowPxeBoot |
Definition at line 16 of file OpenNetworkBoot.c.
STATIC BOOLEAN mAuxEntries |
Definition at line 20 of file OpenNetworkBoot.c.
STATIC CHAR16* mHttpBootUri |
Definition at line 21 of file OpenNetworkBoot.c.
STATIC OC_BOOT_ENTRY_PROTOCOL mNetworkBootEntryProtocol |
Definition at line 420 of file OpenNetworkBoot.c.
STATIC CHAR16 PxeBootId[] = L"PXE Boot IPv" |
Definition at line 23 of file OpenNetworkBoot.c.