mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-18 01:21:57 +01:00
Fix compilation error in securehash.cpp
This commit is contained in:
parent
38564b2870
commit
39a96c8185
@ -1 +1 @@
|
||||
Subproject commit 8270a6fb81b95abf957d2b7acd945fcc039ffde6
|
||||
Subproject commit 0fcc050a44f6fa06788b349e65b4e10fcdabde67
|
@ -41,6 +41,8 @@
|
||||
#include "entry_scan.h"
|
||||
#include "../../Library/OpensslLib/openssl-1.0.1e/include/openssl/sha.h"
|
||||
#include <Guid/ImageAuthentication.h>
|
||||
#include <IndustryStandard/PeImage.h>
|
||||
//#include <IndustryStandard/PeImage2.h>
|
||||
|
||||
#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) {
|
||||
|
Loading…
Reference in New Issue
Block a user