OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
HttpBootCallback.c File Reference
#include "NetworkBootInternal.h"
#include <IndustryStandard/Http11.h>
#include <Library/HttpLib.h>
#include <Protocol/Http.h>

Go to the source code of this file.

Macros

#define HTTP_CONTENT_TYPE_APP_EFI   "application/efi"
 

Functions

EFI_STATUS ValidateDmgAndHttps (CHAR16 *Uri, BOOLEAN ShowLog, BOOLEAN *HasDmgExtension)
 
STATIC EFI_STATUS EFIAPI OpenNetworkBootHttpBootCallback (IN EFI_HTTP_BOOT_CALLBACK_PROTOCOL *This, IN EFI_HTTP_BOOT_CALLBACK_DATA_TYPE DataType, IN BOOLEAN Received, IN UINT32 DataLength, IN VOID *Data OPTIONAL)
 
STATIC VOID EFIAPI NotifyInstallHttpBootCallback (IN EFI_EVENT Event, IN VOID *Context)
 
BOOLEAN UriWasValidated (VOID)
 
EFI_EVENT MonitorHttpBootCallback (EFI_HANDLE LoadFileHandle)
 

Variables

OC_DMG_LOADING_SUPPORT gDmgLoading
 
STATIC EFI_HTTP_BOOT_CALLBACK mOriginalHttpBootCallback
 
STATIC BOOLEAN mUriValidated
 

Detailed Description

Callback handler for HTTP Boot.

Copyright (c) 2024, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file HttpBootCallback.c.

Macro Definition Documentation

◆ HTTP_CONTENT_TYPE_APP_EFI

#define HTTP_CONTENT_TYPE_APP_EFI   "application/efi"

Definition at line 14 of file HttpBootCallback.c.

Function Documentation

◆ MonitorHttpBootCallback()

EFI_EVENT MonitorHttpBootCallback ( EFI_HANDLE LoadFileHandle)

Definition at line 245 of file HttpBootCallback.c.

◆ NotifyInstallHttpBootCallback()

STATIC VOID EFIAPI NotifyInstallHttpBootCallback ( IN EFI_EVENT Event,
IN VOID * Context )

Definition at line 199 of file HttpBootCallback.c.

◆ OpenNetworkBootHttpBootCallback()

STATIC EFI_STATUS EFIAPI OpenNetworkBootHttpBootCallback ( IN EFI_HTTP_BOOT_CALLBACK_PROTOCOL * This,
IN EFI_HTTP_BOOT_CALLBACK_DATA_TYPE DataType,
IN BOOLEAN Received,
IN UINT32 DataLength,
IN VOID *Data OPTIONAL )

Definition at line 82 of file HttpBootCallback.c.

◆ UriWasValidated()

BOOLEAN UriWasValidated ( VOID )

Definition at line 237 of file HttpBootCallback.c.

◆ ValidateDmgAndHttps()

EFI_STATUS ValidateDmgAndHttps ( CHAR16 * Uri,
BOOLEAN ShowLog,
BOOLEAN * HasDmgExtension )

Definition at line 28 of file HttpBootCallback.c.

Variable Documentation

◆ gDmgLoading

Current DmgLoading setting, for HTTP BOOT callback validation.

Definition at line 16 of file HttpBootCallback.c.

◆ mOriginalHttpBootCallback

STATIC EFI_HTTP_BOOT_CALLBACK mOriginalHttpBootCallback

Definition at line 18 of file HttpBootCallback.c.

◆ mUriValidated

STATIC BOOLEAN mUriValidated

Definition at line 19 of file HttpBootCallback.c.