summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-05-28 18:30:14 -0700
committerAndres Morales <anmorales@google.com>2015-05-28 18:36:04 -0700
commitea08acebdbea498854520ad65dedcef91912bb4a (patch)
tree227d663666579e755ccdc13cbc30e0cd2fd89705
parenta623e45c36f36f855c985f22db78077f828ce389 (diff)
downloadgatekeeper-ea08acebdbea498854520ad65dedcef91912bb4a.tar.gz
disable throtlling
Bug: 21501401
-rw-r--r--gatekeeper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gatekeeper.cpp b/gatekeeper.cpp
index f18a490..8c36666 100644
--- a/gatekeeper.cpp
+++ b/gatekeeper.cpp
@@ -42,7 +42,8 @@ void GateKeeper::Enroll(const EnrollRequest &request, EnrollResponse *response)
uint64_t timestamp = GetMillisecondsSinceBoot();
- bool throttle = true;
+ // disabled
+ bool throttle = false;
if (pw_handle->version == 0) {
// handle version is pre-throttling
throttle = false;
@@ -111,7 +112,8 @@ void GateKeeper::Verify(const VerifyRequest &request, VerifyResponse *response)
password_handle_t *password_handle = reinterpret_cast<password_handle_t *>(
request.password_handle.buffer.get());
- bool throttle = true;
+ // disabled
+ bool throttle = false;
if (password_handle->version == 0) {
// handle version is pre-throttling
throttle = false;