summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-04-09 19:17:40 -0700
committerAndres Morales <anmorales@google.com>2015-04-09 19:17:40 -0700
commit9c29b0b53c9f6f8eab9ed9a15ee539b068490a9f (patch)
tree1a6688597d886cbcc15842b5c58f6276e6b08e10
parent89dd74cb3e915b468612b5849fcbcea9a8e72b06 (diff)
downloadhardware_libhardware-9c29b0b53c9f6f8eab9ed9a15ee539b068490a9f.zip
hardware_libhardware-9c29b0b53c9f6f8eab9ed9a15ee539b068490a9f.tar.gz
hardware_libhardware-9c29b0b53c9f6f8eab9ed9a15ee539b068490a9f.tar.bz2
add challenge to gatekeeper hal
Change-Id: Iffd250233c9ec2a28682f018984e28531bd83e7a
-rw-r--r--include/hardware/gatekeeper.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hardware/gatekeeper.h b/include/hardware/gatekeeper.h
index 7cc7f8d..89d96b1 100644
--- a/include/hardware/gatekeeper.h
+++ b/include/hardware/gatekeeper.h
@@ -103,6 +103,10 @@ struct gatekeeper_device {
* - dev: pointer to gatekeeper_device acquired via calls to gatekeeper_open
* - uid: the Android user identifier
*
+ * - challenge: An optional challenge to authenticate against, or 0. Used when a separate
+ * authenticator requests password verification, or for transactional
+ * password authentication.
+ *
* - enrolled_password_handle: the currently enrolled password handle that the
* user wishes to verify against.
* - enrolled_password_handle_length: the length in bytes of the buffer pointed
@@ -122,7 +126,7 @@ struct gatekeeper_device {
* Returns: 0 on success or an error code less than 0 on error
* On error, auth token will not be allocated
*/
- int (*verify)(const struct gatekeeper_device *dev, uint32_t uid,
+ int (*verify)(const struct gatekeeper_device *dev, uint32_t uid, uint64_t challenge,
const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length,
const uint8_t *provided_password, uint32_t provided_password_length,
uint8_t **auth_token, uint32_t *auth_token_length);