diff options
author | Werner Koch <[email protected]> | 2019-02-05 13:48:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-02-05 14:01:45 +0000 |
commit | 3231ecdafd71ac47b734469b07170756979ede72 (patch) | |
tree | 223b0e777109729dd7f26f8334815d2457e3ca15 /scd/iso7816.c | |
parent | card: Implement non-interactive mode. (diff) | |
download | gnupg-3231ecdafd71ac47b734469b07170756979ede72.tar.gz gnupg-3231ecdafd71ac47b734469b07170756979ede72.zip |
scd: Allow standard keyref scheme for app-openpgp.
* scd/app-openpgp.c (do_change_pin): Allow prefixing the CHVNO with
"OPENPGP."
* tools/card-call-scd.c (scd_change_pin): Change API to use strings.
* tools/gpg-card-tool.c (cmd_passwd): Adjust for change.
(cmd_unblock): Ditto.
--
The generic keyref allows for better error detection in case a keyref
is send to a wrong card.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/iso7816.c')
-rw-r--r-- | scd/iso7816.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c index c8a2138cb..69009c43e 100644 --- a/scd/iso7816.c +++ b/scd/iso7816.c @@ -346,6 +346,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); |