From 39a96c81857c0b85a92a755cf145b87e2da31bd1 Mon Sep 17 00:00:00 2001 From: jief Date: Mon, 8 Jan 2024 16:23:32 +0100 Subject: [PATCH] Fix compilation error in securehash.cpp --- OpenCorePkg | 2 +- rEFIt_UEFI/entry_scan/securehash.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenCorePkg b/OpenCorePkg index 8270a6fb8..0fcc050a4 160000 --- a/OpenCorePkg +++ b/OpenCorePkg @@ -1 +1 @@ -Subproject commit 8270a6fb81b95abf957d2b7acd945fcc039ffde6 +Subproject commit 0fcc050a44f6fa06788b349e65b4e10fcdabde67 diff --git a/rEFIt_UEFI/entry_scan/securehash.cpp b/rEFIt_UEFI/entry_scan/securehash.cpp index 46c43d245..5472f7487 100644 --- a/rEFIt_UEFI/entry_scan/securehash.cpp +++ b/rEFIt_UEFI/entry_scan/securehash.cpp @@ -41,6 +41,8 @@ #include "entry_scan.h" #include "../../Library/OpensslLib/openssl-1.0.1e/include/openssl/sha.h" #include +#include +//#include #ifndef DEBUG_ALL #define DEBUG_SECURE_HASH 1 @@ -840,9 +842,9 @@ void *GetImageSignatureDatabase(IN void *FileBuffer, GuidCert = (WIN_CERTIFICATE_UEFI_GUID *)Cert; if ( GuidCert->CertType == gEfiCertX509Guid ) { SigGuid = gEfiCertX509Guid; - } else if ( GuidCert->CertType == gEfiCertTypeRsa2048Sha256Guid, sizeof(EFI_GUID)) == 0) { + } else if ( GuidCert->CertType == gEfiCertTypeRsa2048Sha256Guid ) { SigGuid = gEfiCertRsa2048Sha256Guid; - } else if ( GuidCert->CertType == gEfiCertPkcs7Guid, sizeof(EFI_GUID)) == 0) { + } else if ( GuidCert->CertType == gEfiCertPkcs7Guid ) { SigGuid = gEfiCertPkcs7Guid; } } else if (Cert->wCertificateType == WIN_CERT_TYPE_EFI_PKCS115) {