mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2026-07-17 11:05:19 +01:00
a22f36e03d
In this mode, when PW1 is set equal to PW3 without being the default, it enters onto admin-less mode, where with PW1 gains admin privileges. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
9 lines
239 B
Python
9 lines
239 B
Python
from card_test_reset_pw3 import *
|
|
from card_const import FACTORY_PASSPHRASE_PW3
|
|
|
|
|
|
def test_restore_adminfull_mode(card):
|
|
r = card.change_passwd(3, FACTORY_PASSPHRASE_PW3,
|
|
FACTORY_PASSPHRASE_PW3)
|
|
assert r
|