mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-19 11:16:59 +00:00
temp code to find out how to tell if json reference to vendor-table.json object is empty
This commit is contained in:
parent
88de721d10
commit
97ef839383
@ -45,6 +45,10 @@ public class UefiGuid {
|
|||||||
System.arraycopy(guidBytes, 0, guid, 0, UefiConstants.SIZE_16);
|
System.arraycopy(guidBytes, 0, guid, 0, UefiConstants.SIZE_16);
|
||||||
uuid = processGuid(guidBytes);
|
uuid = processGuid(guidBytes);
|
||||||
uefiVendorRef = JsonUtils.getSpecificJsonObject(JSON_PATH, "VendorTable");
|
uefiVendorRef = JsonUtils.getSpecificJsonObject(JSON_PATH, "VendorTable");
|
||||||
|
|
||||||
|
if(uefiVendorRef.isEmpty()) {
|
||||||
|
System.out.println("XXXX IS EMPTY");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -114,6 +114,9 @@ public class UefiSignatureList {
|
|||||||
byte[] guid = new byte[UefiConstants.SIZE_16];
|
byte[] guid = new byte[UefiConstants.SIZE_16];
|
||||||
lists.read(guid);
|
lists.read(guid);
|
||||||
signatureType = new UefiGuid(guid);
|
signatureType = new UefiGuid(guid);
|
||||||
|
// if(signatureType.getVendorTableReference().isEmpty()) {
|
||||||
|
// System.out.println("XXXX IS EMPTY");
|
||||||
|
// }
|
||||||
|
|
||||||
// if signatureType is invalid, don't even process any of the data
|
// if signatureType is invalid, don't even process any of the data
|
||||||
// however, if signatureTYpe is valid, but some of the data later on is invalid, that will
|
// however, if signatureTYpe is valid, but some of the data later on is invalid, that will
|
||||||
|
Loading…
Reference in New Issue
Block a user