diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-20 08:28:46 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-20 08:28:46 -0800 |
commit | e106613dbd94bf0580b873da0ad3c3751e156f24 (patch) | |
tree | 565bef9eccef10b9d49ed02a50b3c36cd3c4505c /rand/rand_core/LICENSE-APACHE | |
parent | 01fb9e579de1c019ed718e04f9b592f2687f7040 (diff) | |
download | nitrocli-e106613dbd94bf0580b873da0ad3c3751e156f24.tar.gz nitrocli-e106613dbd94bf0580b873da0ad3c3751e156f24.tar.bz2 |
Make caching of secrets optional
Currently, when we enter a secret (i.e., a PIN) through the pinentry
module, this PIN will automatically be cached and not asked from the
user again on subsequent inquiries. However, caching may not always be
desired. For the upcoming support of passwords used in conjunction with
hidden volumes, we do not want any caching because different passwords
can be entered for different volumes and the user's intention is not
clear until a password has actually been entered.
To accommodate this use case, this change modifies the signature of the
SecretEntry trait's cache_id method to return an optional cache ID. If
none is returned, caching of the entered secret is disabled.
Diffstat (limited to 'rand/rand_core/LICENSE-APACHE')
0 files changed, 0 insertions, 0 deletions