From 32c80e98899c67d8bcbe97f774a6ece55ca1ce3f Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 15 Jan 2019 17:55:28 +0100 Subject: [PATCH] Make U2F counter public. --- src/apps/common/storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/common/storage.py b/src/apps/common/storage.py index ab86240715..3eb651dc80 100644 --- a/src/apps/common/storage.py +++ b/src/apps/common/storage.py @@ -215,11 +215,11 @@ def set_autolock_delay_ms(delay_ms: int) -> None: def next_u2f_counter() -> int: - return _next_counter(_APP, _U2F_COUNTER) + return _next_counter(_APP, _U2F_COUNTER, True) # public def set_u2f_counter(cntr: int) -> None: - _set_counter(_APP, _U2F_COUNTER, cntr) + _set_counter(_APP, _U2F_COUNTER, cntr, True) # public def wipe(): @@ -234,6 +234,6 @@ def init_unlocked(): # Make the U2F counter public. counter = config.get(_APP, _U2F_COUNTER) if counter is not None: - _set_counter(_APP, _U2F_COUNTER, counter, True) + _set_counter(_APP, _U2F_COUNTER, counter, True) # public config.delete(_APP, _U2F_COUNTER) config.set(_APP, _VERSION, _STORAGE_VERSION)