summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Crowley <paulcrowley@google.com>2021-02-27 05:05:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-27 05:05:50 +0000
commit43972e7d10362e20f3b1cfc53e2ccbe2775125c7 (patch)
treeabe1993120c64baf4425182803e3d1860ee6cef8
parenta3888bdcb9c92d93c10eb64b0d318f9e66046c83 (diff)
parent1f4800f20a5c2fca10a6def54baa6ff9b07fb43c (diff)
downloadlibhardware-43972e7d10362e20f3b1cfc53e2ccbe2775125c7.tar.gz
Merge "Add MAX_BOOT_LEVEL tag, BOOT_LEVEL_EXCEEDED error"
-rw-r--r--include/hardware/keymaster_defs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h
index 49f65a9a..c0b3800e 100644
--- a/include/hardware/keymaster_defs.h
+++ b/include/hardware/keymaster_defs.h
@@ -212,8 +212,8 @@ typedef enum {
The value should interpreted as too's
complement signed integer. Negative values
indicate dates before Jan 1970 */
-
-
+ KM_TAG_MAX_BOOT_LEVEL = KM_UINT | 1010, /* Specifies a maximum boot level at which a key
+ should function. */
} keymaster_tag_t;
/**
@@ -512,6 +512,7 @@ typedef enum {
KM_ERROR_MISSING_NOT_AFTER = -81,
KM_ERROR_MISSING_ISSUER_SUBJECT = -82,
KM_ERROR_INVALID_ISSUER_SUBJECT = -83,
+ KM_ERROR_BOOT_LEVEL_EXCEEDED = -84,
KM_ERROR_UNIMPLEMENTED = -100,
KM_ERROR_VERSION_MISMATCH = -101,