mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
added output to show up front how many UEFI Signature Lists there are, and be more descriptive about how many certs/hashes in each List
This commit is contained in:
parent
693968059b
commit
24a7ea19dd
@ -219,7 +219,7 @@ public class UefiSignatureList {
|
||||
}
|
||||
else {
|
||||
sigInfo.append(" UEFI Signature List Type = " + signatureType.toString() + "\n");
|
||||
sigInfo.append(" Number of items (certs, hashes, etc) = " + numberOfCerts + "\n");
|
||||
sigInfo.append(" Number of Certs or Hashes in UEFI Signature List = " + numberOfCerts + "\n");
|
||||
|
||||
for (int i = 0; i < sigList.size(); i++) {
|
||||
UefiSignatureData certData = sigList.get(i);
|
||||
|
@ -201,7 +201,15 @@ public class UefiVariable {
|
||||
efiVariable.append("Data not provided ");
|
||||
}
|
||||
}
|
||||
|
||||
// Signature List output (if there are any Signature Lists)
|
||||
if (certSuperList.size() > 0){
|
||||
efiVariable.append("Number of UEFI Signature Lists = " + certSuperList.size() + "\n");
|
||||
}
|
||||
int certSuperListCnt = 1;
|
||||
for (UefiSignatureList uefiSigList : certSuperList) {
|
||||
efiVariable.append("UEFI Signature List # " + certSuperListCnt++ + " of " +
|
||||
certSuperList.size() + ":\n");
|
||||
efiVariable.append(uefiSigList.toString());
|
||||
}
|
||||
if(invalidSignatureListEncountered) {
|
||||
@ -209,6 +217,7 @@ public class UefiVariable {
|
||||
efiVariable.append("*** Encountered invalid Signature Type - " +
|
||||
"Stopped processing of this event data\n");
|
||||
}
|
||||
|
||||
return efiVariable.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user