Skip to content

Commit

Permalink
pe(certificate_table): add EFI certificate types
Browse files Browse the repository at this point in the history
We forgot those but they come handy in the UEFI ecosystem when you are
reading UEFI signature lists.
  • Loading branch information
RaitoBezarius committed Jan 23, 2024
1 parent 1b29482 commit 9dafae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pe/certificate_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ pub enum AttributeCertificateType {
Reserved1 = 0x0003,
/// WIN_CERT_TYPE_TS_STACK_SIGNED
TsStackSigned = 0x0004,
/// WIN_CERT_TYPE_EFI_PKCS115
EfiPkcs115 = 0xEF0,
/// WIN_CERT_TYPE_EFI_GUID
EfiGuid = 0x0EF1,
}

impl TryFrom<u16> for AttributeCertificateType {
Expand Down

0 comments on commit 9dafae0

Please sign in to comment.