Initialize passphrase cache at UI c-tor

This commit is contained in:
Roman Zeyde
2020-04-29 21:59:17 +03:00
parent 8c22e5030b
commit 52d840cbbb
3 changed files with 2 additions and 7 deletions

View File

@@ -28,7 +28,8 @@ class UI:
default_pinentry)
self.options_getter = create_default_options_getter()
self.device_name = device_type.__name__
self.cached_passphrase_ack = None
self.cached_passphrase_ack = util.ExpiringCache(
seconds=float(config.get('cache_expiry_seconds', 'inf')))
def get_pin(self, _code=None):
"""Ask the user for (scrambled) PIN."""