aboutsummaryrefslogtreecommitdiffstats
path: root/tools/card-tool.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-02-05 13:48:49 +0000
committerWerner Koch <[email protected]>2019-02-05 14:01:45 +0000
commit3231ecdafd71ac47b734469b07170756979ede72 (patch)
tree223b0e777109729dd7f26f8334815d2457e3ca15 /tools/card-tool.h
parentcard: Implement non-interactive mode. (diff)
downloadgnupg-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 'tools/card-tool.h')
-rw-r--r--tools/card-tool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/card-tool.h b/tools/card-tool.h
index 9aca8131d..2707b3e8f 100644
--- a/tools/card-tool.h
+++ b/tools/card-tool.h
@@ -212,7 +212,7 @@ gpg_error_t scd_serialno (char **r_serialno, const char *demand);
gpg_error_t scd_readcert (const char *certidstr,
void **r_buf, size_t *r_buflen);
gpg_error_t scd_cardlist (strlist_t *result);
-gpg_error_t scd_change_pin (int chvno);
+gpg_error_t scd_change_pin (const char *pinref, int reset_mode);
gpg_error_t scd_checkpin (const char *serialno);
unsigned long agent_get_s2k_count (void);