summaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-09-04 16:34:55 +0200
committerWerner Koch <wk@gnupg.org>2023-09-04 16:36:51 +0200
commit1f76cbca35133969ccccfa324d633556e19a386c (patch)
tree5475d0fc7ab2801f3a761f59d84ad891d6c12054 /g10/options.h
parentgpgsm: Add --always-trust feature. (diff)
downloadgnupg2-1f76cbca35133969ccccfa324d633556e19a386c.tar.xz
gnupg2-1f76cbca35133969ccccfa324d633556e19a386c.zip
gpg: Add option --with-v5-fingerprint
* g10/gpg.c (oWithV5Fingerprint): New. (opts): Add new option. (main): Set option. * g10/options.h (opt): Add with_v5_fingerprint. * g10/keyid.c (hash_public_key): Factor out to ... (do_hash_public_key): this. Add new arg to foce v5 style hashing. (v5_fingerprint_from_pk): New. (v5hexfingerprint): New. * g10/keylist.c (print_fingerprint): Print v5 fingerprint for v4 keys if the option is set. -- GnuPG-bug-id: 6705
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index 914c24849..e0ee99533 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -79,6 +79,7 @@ struct
int with_colons;
int with_key_data;
int with_icao_spelling; /* Print ICAO spelling with fingerprints. */
+ int with_v5_fingerprint; /* Option --with-v5-fingerprint active. */
int with_fingerprint; /* Option --with-fingerprint active. */
int with_subkey_fingerprint; /* Option --with-subkey-fingerprint active. */
int with_keygrip; /* Option --with-keygrip active. */