summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Morales2015-04-10 23:03:07 -0500
committerAndres Morales2015-04-11 20:29:04 -0500
commitc828ae87768f3539cefadb7e485b877995918299 (patch)
treef9dc4f6a289ec1d684172ed419483cf5829cba53 /gatekeeperd/IGateKeeperService.h
parent851b57c1f81bd3572cf5908611ba029be934c706 (diff)
downloadplatform-system-core-c828ae87768f3539cefadb7e485b877995918299.tar.gz
platform-system-core-c828ae87768f3539cefadb7e485b877995918299.tar.xz
platform-system-core-c828ae87768f3539cefadb7e485b877995918299.zip
Update verify API to return auth token blob
Change-Id: I853e61815458b54fb3b2f29e12a147b3b9aa3788
Diffstat (limited to 'gatekeeperd/IGateKeeperService.h')
-rw-r--r--gatekeeperd/IGateKeeperService.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/gatekeeperd/IGateKeeperService.h b/gatekeeperd/IGateKeeperService.h
index 90d302907..10b1b4310 100644
--- a/gatekeeperd/IGateKeeperService.h
+++ b/gatekeeperd/IGateKeeperService.h
@@ -30,6 +30,7 @@ public:
30 enum { 30 enum {
31 ENROLL = IBinder::FIRST_CALL_TRANSACTION + 0, 31 ENROLL = IBinder::FIRST_CALL_TRANSACTION + 0,
32 VERIFY = IBinder::FIRST_CALL_TRANSACTION + 1, 32 VERIFY = IBinder::FIRST_CALL_TRANSACTION + 1,
33 VERIFY_CHALLENGE = IBinder::FIRST_CALL_TRANSACTION + 2,
33 }; 34 };
34 35
35 // DECLARE_META_INTERFACE - C++ client interface not needed 36 // DECLARE_META_INTERFACE - C++ client interface not needed
@@ -51,9 +52,18 @@ public:
51 * Verifies a password previously enrolled with the GateKeeper. 52 * Verifies a password previously enrolled with the GateKeeper.
52 * Returns 0 on success, negative on failure. 53 * Returns 0 on success, negative on failure.
53 */ 54 */
54 virtual status_t verify(uint32_t uid, uint64_t challenge, 55 virtual status_t verify(uint32_t uid, const uint8_t *enrolled_password_handle,
55 const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length, 56 uint32_t enrolled_password_handle_length,
56 const uint8_t *provided_password, uint32_t provided_password_length) = 0; 57 const uint8_t *provided_password, uint32_t provided_password_length) = 0;
58
59 /**
60 * Verifies a password previously enrolled with the GateKeeper.
61 * Returns 0 on success, negative on failure.
62 */
63 virtual status_t verifyChallenge(uint32_t uid, uint64_t challenge,
64 const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length,
65 const uint8_t *provided_password, uint32_t provided_password_length,
66 uint8_t **auth_token, uint32_t *auth_token_length) = 0;
57}; 67};
58 68
59// ---------------------------------------------------------------------------- 69// ----------------------------------------------------------------------------