From 918e9218002b2b0d455a8df86a63c9187cf6fdf4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 22 Oct 2021 15:42:09 +0200 Subject: [PATCH] gpg: Fix printing of binary notations. * g10/keylist.c (show_notation): Print binary notation from BDAT. -- GnuPG-bug-id: 5667 --- g10/keylist.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/g10/keylist.c b/g10/keylist.c index d8006eed1..af0ce9d24 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -452,8 +452,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); } }