diff options
author | Andres Morales <anmorales@google.com> | 2015-06-24 18:06:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-24 18:06:19 +0000 |
commit | f8b5a37ef96002b61fb4d3be687964319faeddc0 (patch) | |
tree | cd17114956c76d00a21b1448d67bc09505ed2178 /include | |
parent | 077d354252f66c5b9b7353e9b0be5758bea997c6 (diff) | |
parent | 76b43f9e4186395754a2d6c70cb648867cd38664 (diff) | |
download | hardware_libhardware-f8b5a37ef96002b61fb4d3be687964319faeddc0.zip hardware_libhardware-f8b5a37ef96002b61fb4d3be687964319faeddc0.tar.gz hardware_libhardware-f8b5a37ef96002b61fb4d3be687964319faeddc0.tar.bz2 |
Merge "hardware: gatekeeper: Add delete and delete_all api's" into mnc-dev
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/gatekeeper.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/hardware/gatekeeper.h b/include/hardware/gatekeeper.h index 6d2fb0b..2bb2b08 100644 --- a/include/hardware/gatekeeper.h +++ b/include/hardware/gatekeeper.h @@ -143,7 +143,36 @@ struct gatekeeper_device { const uint8_t *provided_password, uint32_t provided_password_length, uint8_t **auth_token, uint32_t *auth_token_length, bool *request_reenroll); + /* + * Deletes the enrolled_password_handle associated wth the uid. Once deleted + * the user cannot be verified anymore. + * This function is optional and should be set to NULL if it is not implemented. + * + * Parameters + * - dev: pointer to gatekeeper_device acquired via calls to gatekeeper_open + * - uid: the Android user identifier + * + * Returns: + * - 0 on success + * - An error code < 0 on failure + */ + int (*delete_user)(const struct gatekeeper_device *dev, uint32_t uid); + + /* + * Deletes all the enrolled_password_handles for all uid's. Once called, + * no users will be enrolled on the device. + * This function is optional and should be set to NULL if it is not implemented. + * + * Parameters + * - dev: pointer to gatekeeper_device acquired via calls to gatekeeper_open + * + * Returns: + * - 0 on success + * - An error code < 0 on failure + */ + int (*delete_all_users)(const struct gatekeeper_device *dev); }; + typedef struct gatekeeper_device gatekeeper_device_t; static inline int gatekeeper_open(const struct hw_module_t *module, |