aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-06-25 07:51:24 +0000
committerWerner Koch <[email protected]>2021-06-25 07:55:52 +0000
commit95d707e09336ba858254b3fe6851a77b7c4fe029 (patch)
tree7fd67e1c5194f16b6e01b9eed332d8a65c49cd10
parentscd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer. (diff)
downloadgnupg-95d707e09336ba858254b3fe6851a77b7c4fe029.tar.gz
gnupg-95d707e09336ba858254b3fe6851a77b7c4fe029.zip
tools: Tweak ccidmon output.
--
-rw-r--r--tools/ccidmon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ccidmon.c b/tools/ccidmon.c
index c649913d1..595a8b20d 100644
--- a/tools/ccidmon.c
+++ b/tools/ccidmon.c
@@ -213,7 +213,7 @@ print_as_ascii (const unsigned char *buf, unsigned int buflen,unsigned int fill)
static void
-print_t1_block (const unsigned char *msg, size_t msglen)
+print_t1_block (const unsigned char *msg, size_t msglen, int to_rdr)
{
unsigned int count, len;
unsigned char buf[16];
@@ -232,7 +232,7 @@ print_t1_block (const unsigned char *msg, size_t msglen)
msg += 3;
msglen -= 3;
- printf (" APDU .:");
+ printf (" APDU-%c:", to_rdr? 's':'r');
count = 0;
while (msglen > 1 && len)
{
@@ -332,7 +332,7 @@ print_p2r_xfrblock (const unsigned char *msg, size_t msglen)
return;
msg += 10;
msglen -= 10;
- print_t1_block (msg, msglen);
+ print_t1_block (msg, msglen, 1);
}
@@ -545,7 +545,7 @@ print_r2p_datablock (const unsigned char *msg, size_t msglen)
return;
msg += 10;
msglen -= 10;
- print_t1_block (msg, msglen);
+ print_t1_block (msg, msglen, 0);
}