gpg-interface.c: support getting key fingerprint via %GF format

Support processing VALIDSIG status that provides additional information
for valid signatures.  Use this information to propagate signing key
fingerprint and expose it via %GF pretty format.  This format can be
used to build safer key verification systems that verify the key via
complete fingerprint rather than short/long identifier provided by %GK.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michał Górny
2018-10-22 18:38:20 +02:00
committed by Junio C Hamano
parent 0b11a84e1b
commit 3daaaabe7e
5 changed files with 31 additions and 7 deletions

View File

@ -23,6 +23,7 @@ struct signature_check {
char result;
char *signer;
char *key;
char *fingerprint;
};
void signature_check_clear(struct signature_check *sigc);