aboutsummaryrefslogtreecommitdiff
path: root/libstb/status_codes.h
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-09-28 05:01:29 -0300
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-10 15:29:36 +1100
commit3837c6f0cf4cffb5de874413eed755c0c698b076 (patch)
tree1e8f5ebb57e5782d987cbd68fbef5d34baf8072a /libstb/status_codes.h
parent3a0bec69b7cea2dcc4205c352086e94ad8b96a65 (diff)
downloadskiboot-3837c6f0cf4cffb5de874413eed755c0c698b076.zip
skiboot-3837c6f0cf4cffb5de874413eed755c0c698b076.tar.gz
skiboot-3837c6f0cf4cffb5de874413eed755c0c698b076.tar.bz2
libstb/tpm_chip: add tpm_extendl()
This adds the tpm_extendl() function to tpm_chip interface For each TPM device, tpm_extendl() extends the sha1 and sha256 digests provided to the indicated PCR and also records an event for the same PCR in the event log. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: remove special char, align comments to 80 cols] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/status_codes.h')
-rw-r--r--libstb/status_codes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstb/status_codes.h b/libstb/status_codes.h
index 1637e9f..5fd9757 100644
--- a/libstb/status_codes.h
+++ b/libstb/status_codes.h
@@ -25,6 +25,10 @@
/* secure boot */
#define STB_VERIFY_FAILED -100
+/* trusted boot */
+#define STB_EVENTLOG_FAILED -200
+#define STB_PCR_EXTEND_FAILED -201
+
/* TPM */
#define STB_TPM_OVERFLOW -300
#define STB_TPM_TIMEOUT -301