aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-11-28 11:02:41 +0000
committerWerner Koch <[email protected]>2019-11-28 11:05:32 +0000
commitd2ff62dbdf891319e6db5850c6077c85e5eb784e (patch)
tree7304d8ffe1dfef9f013bc662babcffcc7428fc63 /g10/keylist.c
parentgpg: Implement insert, update, and delete via keyboxd. (diff)
downloadgnupg-d2ff62dbdf891319e6db5850c6077c85e5eb784e.tar.gz
gnupg-d2ff62dbdf891319e6db5850c6077c85e5eb784e.zip
gpg: Change the way v5 fingerprints are printed.
* g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): Increase by one. * g10/keyid.c (format_hexfingerprint): Change v5 key formatting. -- The new format are groups of 5 letters to resemble the CW speed measurement rules. Many hams are used to such blocks from their CW lessons. Note that there is no double blank in the middle as with the v4 keys. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index dacc13788..44cbe73bd 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -2059,9 +2059,9 @@ print_fingerprint (ctrl_t ctrl, estream_t override_fp,
{
if (!i)
;
- else if (!(i%8))
+ else if (!(i%10))
tty_fprintf (fp, "\n%*s ", (int)strlen(text)+1, "");
- else if (!(i%4))
+ else if (!(i%5))
tty_fprintf (fp, " ");
else
tty_fprintf (fp, " ");