From 5938938226a17d68ba422a848325edc1aa3deae7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 12 Mar 2023 18:54:53 +0100 Subject: [PATCH] print the string and hex --- client/src/crypto/asn1dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/crypto/asn1dump.c b/client/src/crypto/asn1dump.c index 4bab148be..a7197a35d 100644 --- a/client/src/crypto/asn1dump.c +++ b/client/src/crypto/asn1dump.c @@ -166,7 +166,7 @@ static void asn1_tag_dump_str_time(const struct tlv *tlv, const struct asn1_tag } static void asn1_tag_dump_string(const struct tlv *tlv, const struct asn1_tag *tag, int level) { - PrintAndLogEx(NORMAL, " value: '%s'", sprint_hex(tlv->value, tlv->len)); + PrintAndLogEx(NORMAL, " value: '%.*s' hex: '%s'", tlv->len, tlv->value, sprint_hex(tlv->value, tlv->len)); } static void asn1_tag_dump_hex(const struct tlv *tlv, const struct asn1_tag *tag, int level) {