mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-12 14:05:39 +00:00
Check the vendor blacklist correctly
This commit is contained in:
parent
6fc35f2eaa
commit
054dc6d29e
6
shim.c
6
shim.c
@ -341,14 +341,14 @@ static EFI_STATUS check_blacklist (WIN_CERTIFICATE_EFI_PKCS *cert,
|
||||
|
||||
if (check_db_hash_in_ram(vendor_dbx, vendor_dbx_size, sha256hash,
|
||||
SHA256_DIGEST_SIZE, EfiHashSha256Guid) ==
|
||||
DATA_NOT_FOUND)
|
||||
DATA_FOUND)
|
||||
return EFI_ACCESS_DENIED;
|
||||
if (check_db_hash_in_ram(vendor_dbx, vendor_dbx_size, sha1hash,
|
||||
SHA1_DIGEST_SIZE, EfiHashSha1Guid) ==
|
||||
DATA_NOT_FOUND)
|
||||
DATA_FOUND)
|
||||
return EFI_ACCESS_DENIED;
|
||||
if (check_db_cert_in_ram(vendor_dbx, vendor_dbx_size, cert,
|
||||
sha256hash) == DATA_NOT_FOUND)
|
||||
sha256hash) == DATA_FOUND)
|
||||
return EFI_ACCESS_DENIED;
|
||||
|
||||
if (check_db_hash(L"dbx", secure_var, sha256hash, SHA256_DIGEST_SIZE,
|
||||
|
Loading…
Reference in New Issue
Block a user