diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-11 19:45:59 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-11 19:45:59 -0800 |
commit | 15e0ad34f8a86b685dc6fddae2813560930ca1a7 (patch) | |
tree | 91379cb2af914ce3f775a4b628fcefb2f99cca7d /rand/rand_pcg | |
parent | 40d7df373d9f55f96942f238dea4edaf78e6e96f (diff) | |
download | nitrocli-15e0ad34f8a86b685dc6fddae2813560930ca1a7.tar.gz nitrocli-15e0ad34f8a86b685dc6fddae2813560930ca1a7.tar.bz2 |
Isolate cached PINs for multiple devices from each other
The application supports multiple devices both plugged in at the same
time as well as when used after the other. However, the GPG cache ID we
use for storing and retrieving the respective PIN is effectively a
constant. This constraint can cause problems when devices have different
PINs, as the PIN of a previously plugged in device may be reused for an
operation on a different one.
To resolve this problem this change adds the respective device's model
and serial number to the cache ID. As each serial number is supposed to
be different, this will ensure that the correct PIN is used for each
device. With this change we also show the model and serial number of the
currently used device in the pinentry dialog.
Note that because we do not store the serial numbers of all previously
plugged in devices, the pin clear command will only clear the PIN for
the currently plugged in device. If a user wants to make sure that a
cached PIN is cleared, the pin clear command should be invoked before
unplugging the device.
Diffstat (limited to 'rand/rand_pcg')
0 files changed, 0 insertions, 0 deletions