summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-10-22 15:42:09 +0200
committerWerner Koch <wk@gnupg.org>2021-10-22 15:42:09 +0200
commit62f838ea1fcad1c008c783946559b607cae37674 (patch)
tree214df11848303696812c7b582f549b7cb7a8881b /g10
parentcommon: Silence warning from unix_rootdir on systems w/o /proc (diff)
downloadgnupg2-62f838ea1fcad1c008c783946559b607cae37674.tar.xz
gnupg2-62f838ea1fcad1c008c783946559b607cae37674.zip
gpg: Fix printing of binary notations.
* g10/keylist.c (show_notation): Print binary notation from BDAT. -- GnuPG-bug-id: 5667
Diffstat (limited to 'g10')
-rw-r--r--g10/keylist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index de651d671..76eed6a78 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -468,8 +468,12 @@ show_notation (PKT_signature * sig, int indent, int mode, int which)
write_status_text (STATUS_NOTATION_FLAGS,
nd->flags.critical && nd->flags.human? "1 1" :
nd->flags.critical? "1 0" : "0 1");
- write_status_buffer (STATUS_NOTATION_DATA,
- nd->value, strlen (nd->value), 50);
+ if (!nd->flags.human && nd->bdat && nd->blen)
+ write_status_buffer (STATUS_NOTATION_DATA,
+ nd->bdat, nd->blen, 250);
+ else
+ write_status_buffer (STATUS_NOTATION_DATA,
+ nd->value, strlen (nd->value), 50);
}
}