diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-16 19:35:50 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-16 21:22:31 +0100 |
commit | d3a103bc25e5f37a42a19515ad25e5a8e5995b36 (patch) | |
tree | f2c4d98eaae40d77f64ed6c90e0d1f49928e2b1a /src/device | |
parent | 79a3298ab5973a47cb68ef48e554ec88fb7e99a6 (diff) | |
download | nitrokey-rs-d3a103bc25e5f37a42a19515ad25e5a8e5995b36.tar.gz nitrokey-rs-d3a103bc25e5f37a42a19515ad25e5a8e5995b36.tar.bz2 |
Make device::factory_reset test more robust
The device::factory_reset test used to first change the PINs and then
access the PWS and the OTP data. If for example the PWS access failed
due to an problem with the AES key, the PINs were not reset.
Now we perform the PWS and OTP access with the old PINs – which is okay
as we do not want to test the PIN change but the factory reset. If
these preparations fail, the tests is cancelled before the PINs are
changed.
Diffstat (limited to 'src/device')
0 files changed, 0 insertions, 0 deletions