aboutsummaryrefslogtreecommitdiffstats
path: root/tools/card-misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-05-28 11:00:27 +0000
committerWerner Koch <[email protected]>2020-05-28 11:00:27 +0000
commited0759f39be04dd6108237f5ed03c7cfd1cb4642 (patch)
tree3d1d3e6c165310d26215332f167d73e76313ccf5 /tools/card-misc.c
parentcard: Update card info after "generate". (diff)
downloadgnupg-ed0759f39be04dd6108237f5ed03c7cfd1cb4642.tar.gz
gnupg-ed0759f39be04dd6108237f5ed03c7cfd1cb4642.zip
card: New command "apdu"
* tools/card-call-scd.c (scd_apdu): Add optional arg 'options'. * tools/gpg-card.c (cmd_apdu): New. (enum cmdids): Add cmdAPDU. (dispatch_command): Add command "apdu". (interactive_loop): Ditto. -- This command is hidden because it can be used to brick a card. The command is basically the same as sending "scd apdu" in gpg-connect-agent but here we do full decoding and printing in hex. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/card-misc.c')
-rw-r--r--tools/card-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/card-misc.c b/tools/card-misc.c
index bccdbda9d..bbb2b4810 100644
--- a/tools/card-misc.c
+++ b/tools/card-misc.c
@@ -88,7 +88,7 @@ send_apdu (const char *hexapdu, const char *desc, unsigned int ignore,
gpg_error_t err;
unsigned int sw;
- err = scd_apdu (hexapdu, &sw, r_data, r_datalen);
+ err = scd_apdu (hexapdu, NULL, &sw, r_data, r_datalen);
if (err)
log_error ("sending card command %s failed: %s\n", desc,
gpg_strerror (err));