aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-10-22 13:42:09 +0000
committerWerner Koch <[email protected]>2021-10-22 14:33:40 +0000
commit918e9218002b2b0d455a8df86a63c9187cf6fdf4 (patch)
tree47cccc9f2d990ad2595385d8d04da5afbc026fee
parentgpgconf: create local option file even if a global file exists. (diff)
downloadgnupg-918e9218002b2b0d455a8df86a63c9187cf6fdf4.tar.gz
gnupg-918e9218002b2b0d455a8df86a63c9187cf6fdf4.zip
gpg: Fix printing of binary notations.
* g10/keylist.c (show_notation): Print binary notation from BDAT. -- GnuPG-bug-id: 5667
-rw-r--r--g10/keylist.c8
1 files 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);
}
}