|
iPXE
|
EFI CA certificates. More...
#include <stdlib.h>#include <string.h>#include <assert.h>#include <errno.h>#include <ipxe/init.h>#include <ipxe/x509.h>#include <ipxe/rootcert.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/efi_siglist.h>#include <ipxe/efi/Guid/TlsAuthentication.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | efi_cacert (const void *data, size_t len, size_t offset) |
| Retrieve EFI CA certificate. More... | |
| static int | efi_cacert_all (void) |
| Retrieve all EFI CA certificates. More... | |
| static void | efi_cacert_init (void) |
| Initialise EFI CA certificates. More... | |
| struct init_fn efi_cacert_init_fn | __init_fn (INIT_LATE) |
| EFI CA certificates initialisation function. More... | |
| static void | efi_cacert_shutdown (int booting __unused) |
| Discard any EFI CA certificates. More... | |
| struct startup_fn efi_cacert_shutdown_fn | __startup_fn (STARTUP_NORMAL) |
| EFI CA certificates shutdown function. More... | |
Variables | |
| static struct x509_chain | efi_cacerts |
| List of EFI CA certificates. More... | |
EFI CA certificates.
Definition in file efi_cacert.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Retrieve EFI CA certificate.
| data | TlsCaCertificate variable data |
| len | Length of TlsCaCertificate |
| offset | Offset within data |
| next | Next offset, or negative error |
Definition at line 57 of file efi_cacert.c.
References allow_trust_override, asn1_cursor::data, data, DBGC, efi_cacerts, efisig_asn1(), free, asn1_cursor::len, len, next, NULL, offset, rc, root_certificates, strerror(), x509_append_raw(), x509_last(), x509_name(), and x509_set_valid().
Referenced by efi_cacert_all(), efi_cacert_init(), and efi_cacert_shutdown().
|
static |
Retrieve all EFI CA certificates.
| rc | Return status code |
Definition at line 106 of file efi_cacert.c.
References data, DBGC, EEFI, EFI_BUFFER_TOO_SMALL, efi_cacert(), efi_cacerts, efi_systab, efi_tls_ca_certificate_guid, EFI_TLS_CA_CERTIFICATE_VARIABLE, ENOMEM, free, EFI_RUNTIME_SERVICES::GetVariable, guid, malloc(), NULL, offset, rc, EFI_SYSTEM_TABLE::RuntimeServices, size, and strerror().
Referenced by efi_cacert_init().
|
static |
Initialise EFI CA certificates.
Definition at line 167 of file efi_cacert.c.
References DBGC, efi_cacert(), efi_cacert_all(), rc, and strerror().
EFI CA certificates initialisation function.
|
static |
Discard any EFI CA certificates.
Definition at line 189 of file efi_cacert.c.
References assert(), DBGC, efi_cacert(), efi_cacerts, x509_chain::links, list_empty, NULL, and x509_truncate().
| struct startup_fn efi_cacert_shutdown_fn __startup_fn | ( | STARTUP_NORMAL | ) |
EFI CA certificates shutdown function.
|
static |
List of EFI CA certificates.
Definition at line 44 of file efi_cacert.c.
Referenced by efi_cacert(), efi_cacert_all(), and efi_cacert_shutdown().
1.8.15