mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-26 03:21:37 +00:00

The license statements in our source files were getting to be a giant mess, and mostly they all just say the same thing. I've switched most of it to SPDX labels, but left copyright statements in place (where they were not obviously incorrect copy-paste jobs that I did...). If there's some change here you don't think is valid, let me know and we can fix it up together. Signed-off-by: Peter Jones <pjones@redhat.com>
36 lines
1009 B
C
36 lines
1009 B
C
// SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#ifndef SHIM_WINCERT_H
|
|
#define SHIM_WINCERT_H
|
|
|
|
///
|
|
/// The WIN_CERTIFICATE structure is part of the PE/COFF specification.
|
|
///
|
|
typedef struct {
|
|
///
|
|
/// The length of the entire certificate,
|
|
/// including the length of the header, in bytes.
|
|
///
|
|
UINT32 dwLength;
|
|
///
|
|
/// The revision level of the WIN_CERTIFICATE
|
|
/// structure. The current revision level is 0x0200.
|
|
///
|
|
UINT16 wRevision;
|
|
///
|
|
/// The certificate type. See WIN_CERT_TYPE_xxx for the UEFI
|
|
/// certificate types. The UEFI specification reserves the range of
|
|
/// certificate type values from 0x0EF0 to 0x0EFF.
|
|
///
|
|
UINT16 wCertificateType;
|
|
///
|
|
/// The following is the actual certificate. The format of
|
|
/// the certificate depends on wCertificateType.
|
|
///
|
|
/// UINT8 bCertificate[ANYSIZE_ARRAY];
|
|
///
|
|
} WIN_CERTIFICATE;
|
|
|
|
|
|
#endif /* SHIM_WINCERT_H */
|