mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
cleaned up NoAction event
This commit is contained in:
parent
9054822347
commit
181ca4993e
@ -261,25 +261,12 @@ public class TpmPcrEvent {
|
||||
case EvConstants.EV_UNUSED:
|
||||
break;
|
||||
case EvConstants.EV_NO_ACTION:
|
||||
// EvNoAction noAction = null;
|
||||
// try {
|
||||
// noAction = new EvNoAction(eventContent);
|
||||
EvNoAction noAction = new EvNoAction(eventContent);
|
||||
sb.append(noAction.toString());
|
||||
if (noAction.isSpecIDEvent()) {
|
||||
// // this should be in the constructor
|
||||
// EvEfiSpecIdEvent specID = noAction.getSpecIDEvent();
|
||||
// specVersion = String.format("%s.%s",
|
||||
// specID.getVersionMajor(),
|
||||
// specID.getVersionMinor());
|
||||
// specErrataVersion = specID.getErrata();
|
||||
specVersion = noAction.getSpecVersion();
|
||||
specErrataVersion = noAction.getSpecErrataVersion();
|
||||
}
|
||||
// } catch (UnsupportedEncodingException ueEx) {
|
||||
// log.error(ueEx);
|
||||
// sb.append(ueEx.toString());
|
||||
// }
|
||||
break;
|
||||
case EvConstants.EV_SEPARATOR:
|
||||
if (EvPostCode.isAscii(eventContent)
|
||||
@ -459,9 +446,6 @@ public class TpmPcrEvent {
|
||||
EvNoAction noAction = new EvNoAction(content);
|
||||
description += "Event Content:\n" + noAction.toString();
|
||||
if (noAction.isSpecIDEvent()) {
|
||||
// EvEfiSpecIdEvent specID = noAction.getSpecIDEvent();
|
||||
// specVersion = specID.getVersionMajor() + "." + specID.getVersionMinor();
|
||||
// specErrataVersion = specID.getErrata();
|
||||
specVersion = noAction.getSpecVersion();
|
||||
specErrataVersion = noAction.getSpecErrataVersion();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public class EvSCrtmVersion {
|
||||
} else if (EvPostCode.isAscii(data)) {
|
||||
description = new String(data, StandardCharsets.UTF_8);
|
||||
} else {
|
||||
description = "Unknown Version format";
|
||||
description = " Unknown Version format";
|
||||
}
|
||||
}
|
||||
return (description);
|
||||
|
Loading…
Reference in New Issue
Block a user