Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check the vendor blacklist correctly

  • Loading branch information...
commit 054dc6d29e2bfdb54830c70c5ca20c1344cbde83 1 parent 6fc35f2
@lcp lcp authored vathpela committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 shim.c
View
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,
Please sign in to comment.
Something went wrong with that request. Please try again.