summaryrefslogtreecommitdiff
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-10-22 16:38:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-22 23:00:09 (GMT)
commit3daaaabe7ed22c17bff04d19c711be427bd2e225 (patch)
treea731b31651b54e0f23b079e10e8aeaf9b094aaf2 /gpg-interface.h
parent0b11a84e1ba26fa3c9995f19e224848d8afc9bcf (diff)
downloadgit-3daaaabe7ed22c17bff04d19c711be427bd2e225.zip
git-3daaaabe7ed22c17bff04d19c711be427bd2e225.tar.gz
git-3daaaabe7ed22c17bff04d19c711be427bd2e225.tar.bz2
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>
Diffstat (limited to 'gpg-interface.h')
-rw-r--r--gpg-interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpg-interface.h b/gpg-interface.h
index acf50c4..8ce614f 100644
--- a/gpg-interface.h
+++ b/gpg-interface.h
@@ -23,6 +23,7 @@ struct signature_check {
char result;
char *signer;
char *key;
+ char *fingerprint;
};
void signature_check_clear(struct signature_check *sigc);