- the AC CHANGE condition of the PIN objects we created referenced the

PUK, rather than the PIN. This caused the standard sc_change_reference_data
  operation to fail.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@810 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-12-23 18:43:04 +00:00
parent 4419574608
commit 604e9cd318
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ etoken_store_pin(struct sc_profile *profile, struct sc_card *card,
/* AC conditions */
tlv_next(&tlv, 0x86);
tlv_add(&tlv, 0x00); /* use: always */
tlv_add(&tlv, puk_id); /* change: PUK */
tlv_add(&tlv, pin_id); /* change: PIN */
tlv_add(&tlv, puk_id); /* unblock: PUK */
/* data: PIN */