mirror of https://github.com/acidanthera/audk.git
NetworkPkg/HttpDxe: Add HttpEventTlsConfigured HTTP callback event
Add HttpEventTlsConfigured HTTP callback event and notify callback functions when TlsConfigureSession () returns. Signed-off-by: Abner Chang <abner.chang@amd.com> Cc: Saloni Kasbekar <saloni.kasbekar@intel.com> Cc: Zachary Clark-williams <zachary.clark-williams@intel.com> Cc: Michael Brown <mcb30@ipxe.org> Cc: Nickle Wang <nicklew@nvidia.com> Cc: Igor Kulchytskyy <igork@ami.com> Reviewed-by: Michael Brown <mcb30@ipxe.org> Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
This commit is contained in:
parent
43ab6622a8
commit
8466480965
|
@ -1418,6 +1418,7 @@ HttpInitSession (
|
|||
//
|
||||
if (TlsConfigure) {
|
||||
Status = TlsConfigureSession (HttpInstance);
|
||||
HttpNotify (HttpEventTlsConfigured, Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
This file defines the EDKII HTTP Callback Protocol interface.
|
||||
|
||||
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
|
@ -55,7 +56,18 @@ typedef enum {
|
|||
/// EFI_SUCCESS The initialization of session is done.
|
||||
/// Others Other error as indicated.
|
||||
///
|
||||
HttpEventInitSession
|
||||
HttpEventInitSession,
|
||||
|
||||
///
|
||||
/// The Status of Event to configure TLS configuration data.
|
||||
/// EventStatus:
|
||||
/// EFI_SUCCESS The TLS is configured successfully with the default value.
|
||||
/// EFI_INVALID_PARAMETER One or more input parameters to SetSessionData() is invalid.
|
||||
/// EFI_NOT_READY Current TLS session state is NOT EfiTlsSessionStateNotStarted.
|
||||
/// EFI_NOT_FOUND Fail to get 'HttpTlsCipherList' variable.
|
||||
/// Others Other error as indicated.
|
||||
///
|
||||
HttpEventTlsConfigured
|
||||
} EDKII_HTTP_CALLBACK_EVENT;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue