summaryrefslogtreecommitdiff
path: root/include/wincert.h
diff options
context:
space:
mode:
authorMatthew Garrett <matthew.garrett@nebula.com>2013-09-26 11:57:59 -0400
committerPeter Jones <pjones@redhat.com>2013-09-26 11:57:59 -0400
commit17857eb8b55fa9864bfd71083d9291c74b0bab8e (patch)
treebb526a90c21e07c1177da069c50788e7a705bc3f /include/wincert.h
parent2aa2ddd8a823452fa25955816546fb7455c108ce (diff)
downloadefi-boot-shim-17857eb8b55fa9864bfd71083d9291c74b0bab8e.tar.gz
efi-boot-shim-17857eb8b55fa9864bfd71083d9291c74b0bab8e.zip
Port MokManager to Linux Foundation loader UI code
This is the first stage of porting the MokManager UI to the UI code used by the Linux Foundation UEFI loader.
Diffstat (limited to 'include/wincert.h')
-rw-r--r--include/wincert.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/wincert.h b/include/wincert.h
new file mode 100644
index 00000000..68d1974a
--- /dev/null
+++ b/include/wincert.h
@@ -0,0 +1,33 @@
+#ifndef _INC_WINCERT_H
+#define _INC_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