summaryrefslogtreecommitdiffstats
path: root/gatekeeperd/IGateKeeperService.cpp
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-04-09 19:23:48 -0700
committerAndres Morales <anmorales@google.com>2015-04-10 19:56:07 -0700
commit851b57c1f81bd3572cf5908611ba029be934c706 (patch)
tree783505d76341c9b8af324dce165767de2156f60a /gatekeeperd/IGateKeeperService.cpp
parent9bbd0a5c92ed92c295d2f5ab3befdf3efe490bc9 (diff)
downloadsystem_core-851b57c1f81bd3572cf5908611ba029be934c706.zip
system_core-851b57c1f81bd3572cf5908611ba029be934c706.tar.gz
system_core-851b57c1f81bd3572cf5908611ba029be934c706.tar.bz2
Add challenge to verify call
required for enrolling secondary auth form factors Change-Id: Ia3e1d47f988bca1bb1a0e713c000886e60b4e839
Diffstat (limited to 'gatekeeperd/IGateKeeperService.cpp')
-rw-r--r--gatekeeperd/IGateKeeperService.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gatekeeperd/IGateKeeperService.cpp b/gatekeeperd/IGateKeeperService.cpp
index 133df4c..933b975 100644
--- a/gatekeeperd/IGateKeeperService.cpp
+++ b/gatekeeperd/IGateKeeperService.cpp
@@ -68,6 +68,7 @@ status_t BnGateKeeperService::onTransact(
case VERIFY: {
CHECK_INTERFACE(IGateKeeperService, data, reply);
uint32_t uid = data.readInt32();
+ uint64_t challenge = data.readInt64();
ssize_t currentPasswordHandleSize = data.readInt32();
const uint8_t *currentPasswordHandle =
static_cast<const uint8_t *>(data.readInplace(currentPasswordHandleSize));
@@ -78,8 +79,8 @@ status_t BnGateKeeperService::onTransact(
static_cast<const uint8_t *>(data.readInplace(currentPasswordSize));
if (!currentPassword) currentPasswordSize = 0;
- status_t ret = verify(uid, (uint8_t *) currentPasswordHandle, currentPasswordHandleSize,
- (uint8_t *) currentPassword, currentPasswordSize);
+ status_t ret = verify(uid, challenge, (uint8_t *) currentPasswordHandle,
+ currentPasswordHandleSize, (uint8_t *) currentPassword, currentPasswordSize);
reply->writeNoException();
reply->writeInt32(ret == NO_ERROR ? 1 : 0);
return NO_ERROR;