summaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-11-27 11:28:16 +0100
committerWerner Koch <wk@gnupg.org>2020-11-27 11:28:16 +0100
commitad469609b101fe6c1128135180fef8eae13279ff (patch)
treeb186b061f08e93b8d76f9767f52fdff2c0a409ce /tools/gpg-card.h
parentscd: New getinfo sub-command apdu_strerror. (diff)
downloadgnupg2-ad469609b101fe6c1128135180fef8eae13279ff.tar.xz
gnupg2-ad469609b101fe6c1128135180fef8eae13279ff.zip
card: Let the APDU command prints a description of the status word.
* tools/card-call-scd.c (scd_apdu_strerror): New. * tools/gpg-card.c (cmd_apdu): Print a description. -- Pretty convenient to explore smartcards.
Diffstat (limited to 'tools/gpg-card.h')
-rw-r--r--tools/gpg-card.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gpg-card.h b/tools/gpg-card.h
index 1622f2d5f..18ff5f68d 100644
--- a/tools/gpg-card.h
+++ b/tools/gpg-card.h
@@ -242,6 +242,9 @@ gpg_error_t scd_checkpin (const char *serialno);
unsigned long agent_get_s2k_count (void);
+char *scd_apdu_strerror (unsigned int sw);
+
+
/*-- card-yubikey.c --*/
gpg_error_t yubikey_commands (card_info_t info,
estream_t fp, int argc, const char *argv[]);