Signed-off-by: Timo Juhani Lindfors <[email protected]>
---
src/tpm_mgmt/tpm_nvdefine.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/tpm_mgmt/tpm_nvdefine.c b/src/tpm_mgmt/tpm_nvdefine.c
index e2c748f..4b2867b 100644
--- a/src/tpm_mgmt/tpm_nvdefine.c
+++ b/src/tpm_mgmt/tpm_nvdefine.c
@@ -193,8 +193,8 @@ parseNVPermsFile(FILE *f, TSS_HCONTEXT *hContext,
TSS_HNVSTORE *nvObject,
goto out;
}
- if (pcr > 15) {
- logError(_("Cannot seal NVRAM area to PCR > 15\n"));
+ if (pcr > 23) {
+ logError(_("Cannot seal NVRAM area to PCR > 23\n"));
goto out;
}
@@ -387,8 +387,8 @@ int main(int argc, char **argv)
UINT32 i;
for (i = 0; i < selectedPcrsReadLen; i++) {
- if (selectedPcrsRead[i] > 15) {
- logError(_("Cannot seal NVRAM area to PCR >
15\n"));
+ if (selectedPcrsRead[i] > 23) {
+ logError(_("Cannot seal NVRAM area to PCR >
23\n"));
goto out_close;
}
}
@@ -415,8 +415,8 @@ int main(int argc, char **argv)
UINT32 i;
for (i = 0; i < selectedPcrsWriteLen; i++) {
- if (selectedPcrsWrite[i] > 15) {
- logError(_("Cannot seal NVRAM area to PCR >
15\n"));
+ if (selectedPcrsWrite[i] > 23) {
+ logError(_("Cannot seal NVRAM area to PCR >
23\n"));
goto out_close;
}
}
--
2.11.0
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech