OpenPGP: Correct ACL key_ref

Correct ACL key_ref after redefining conventional OpenPGP key-ref (0x81-0x83 -> 1-3).
This commit is contained in:
Nguyễn Hồng Quân 2012-06-03 11:01:19 +07:00 committed by Peter Marschall
parent 825c8578a9
commit 73387d4b84
1 changed files with 4 additions and 4 deletions

View File

@ -561,11 +561,11 @@ pgp_attach_acl(sc_card_t *card, sc_file_t *file, struct do_info *info)
break;
case WRITE_PIN2:
method = SC_AC_CHV;
key_ref = 0x01;
key_ref = 0x02;
break;
case WRITE_PIN3:
method = SC_AC_CHV;
key_ref = 0x01;
key_ref = 0x03;
break;
}
@ -589,11 +589,11 @@ pgp_attach_acl(sc_card_t *card, sc_file_t *file, struct do_info *info)
break;
case READ_PIN2:
method = SC_AC_CHV;
key_ref = 0x01;
key_ref = 0x02;
break;
case READ_PIN3:
method = SC_AC_CHV;
key_ref = 0x01;
key_ref = 0x03;
break;
}