mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd: Allow standard keyref scheme for app-openpgp.
* scd/app-openpgp.c (do_change_pin): Allow prefixing the CHVNO with
"OPENPGP."
--
The generic keyref allows for better error detection in case a keyref
is send to a wrong card. This has been taken from master commit
3231ecdafd
which has additional changed
for gpg-card-tool, which is only available there.
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
14ea581a1c
commit
6651a0640d
3 changed files with 16 additions and 2 deletions
|
@ -330,6 +330,7 @@ iso7816_change_reference_data (int slot, int chvno,
|
|||
|
||||
sw = apdu_send_simple (slot, 0, 0x00, CMD_CHANGE_REFERENCE_DATA,
|
||||
oldchvlen? 0 : 1, chvno, oldchvlen+newchvlen, buf);
|
||||
wipememory (buf, oldchvlen+newchvlen);
|
||||
xfree (buf);
|
||||
return map_sw (sw);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue