Home GnuPG
Diffusion GnuPG 1f76cbca3513

gpg: Add option --with-v5-fingerprint

Description

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.

Details

Provenance
wernerAuthored on Sep 4 2023, 4:34 PM
Parents
rG776876ce1c4c: gpgsm: Add --always-trust feature.
Branches
Unknown
Tags
Unknown
Tasks
T6705: Provide strong v5 fingerprints also for v4 keys