diff options
author | Werner Koch <wk@gnupg.org> | 2020-11-27 11:28:16 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-11-27 11:28:16 +0100 |
commit | ad469609b101fe6c1128135180fef8eae13279ff (patch) | |
tree | b186b061f08e93b8d76f9767f52fdff2c0a409ce /tools/gpg-card.h | |
parent | scd: New getinfo sub-command apdu_strerror. (diff) | |
download | gnupg2-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.h | 3 |
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[]); |