TianoCore EDK2 master
Loading...
Searching...
No Matches
TlsAuthConfigLib.c File Reference

Go to the source code of this file.

Functions

STATIC VOID SetCaCerts (VOID)
 
STATIC VOID SetCipherSuites (VOID)
 
RETURN_STATUS EFIAPI TlsAuthConfigInit (VOID)
 

Detailed Description

A hook-in library for NetworkPkg/TlsAuthConfigDxe, in order to set volatile variables related to TLS configuration, before TlsAuthConfigDxe or HttpDxe (which is a UEFI_DRIVER) consume them.

Copyright (C) 2013, 2015, 2018, Red Hat, Inc. Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TlsAuthConfigLib.c.

Function Documentation

◆ SetCaCerts()

STATIC VOID SetCaCerts ( VOID  )

Read the list of trusted CA certificates from the fw_cfg file "etc/edk2/https/cacerts", and store it to gEfiTlsCaCertificateGuid:EFI_TLS_CA_CERTIFICATE_VARIABLE.

The contents are validated (for well-formedness) by NetworkPkg/HttpDxe.

Definition at line 35 of file TlsAuthConfigLib.c.

◆ SetCipherSuites()

STATIC VOID SetCipherSuites ( VOID  )

Read the list of trusted cipher suites from the fw_cfg file "etc/edk2/https/ciphers", and store it to gEdkiiHttpTlsCipherListGuid:EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE.

The contents are propagated by NetworkPkg/HttpDxe to NetworkPkg/TlsDxe; the list is processed by the latter.

Definition at line 160 of file TlsAuthConfigLib.c.

◆ TlsAuthConfigInit()

RETURN_STATUS EFIAPI TlsAuthConfigInit ( VOID  )

Definition at line 279 of file TlsAuthConfigLib.c.