fix scripts

This commit is contained in:
NIIBE Yutaka
2016-10-15 20:14:18 +09:00
parent 27bd37781a
commit d2261d53e3
4 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ def main(passwd):
raise ValueError("No ICC present")
elif gnuk.icc_get_status() == 1:
gnuk.icc_power_on()
gnuk.cmd_select_openpgp()
gnuk.cmd_verify(BY_ADMIN, passwd.encode('UTF-8'))
gnuk.cmd_select_openpgp()
gnuk.cmd_put_data_remove(0x00, 0xc7) # FP_SIG