From 396d6cbce987deac076ac1a636d3f7282ec9338d Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Thu, 18 Jun 2015 12:16:17 -0600 Subject: [PATCH] Add new error codes for rate-limit and max-use failures. Bug: 21607106 Change-Id: I2e5515efe51b84200ade8c4c4cc5db3800d4b658 --- include/hardware/keymaster_defs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h index b21035c..04d1228 100644 --- a/include/hardware/keymaster_defs.h +++ b/include/hardware/keymaster_defs.h @@ -333,7 +333,9 @@ typedef enum { KM_ERROR_MISSING_NONCE = -51, KM_ERROR_INVALID_NONCE = -52, KM_ERROR_MISSING_MAC_LENGTH = -53, + KM_ERROR_KEY_RATE_LIMIT_EXCEEDED = -54, KM_ERROR_CALLER_NONCE_PROHIBITED = -55, + KM_ERROR_KEY_MAX_OPS_EXCEEDED = -56, KM_ERROR_UNIMPLEMENTED = -100, KM_ERROR_VERSION_MISMATCH = -101, -- 2.11.0