Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2014-06-23 11:05:48 +0400
committerJunio C Hamano <gitster@pobox.com>2014-06-24 02:50:30 +0400
commit71c214c840782a67801fc8dbf5fe8a4f4fc62d01 (patch)
tree22b7db0f0ddac955e11d4a6c8a43ce4e9517b36e /gpg-interface.h
parent01e57b5d91b0c9f2ac93708c5c2cbcd4731ddd34 (diff)
gpg-interface: provide access to the payload
In contrast to tag signatures, commit signatures are put into the header, that is between the other header parts and commit messages. Provide access to the commit content sans the signature, which is the payload that is actually signed. Commit signature verification does the parsing anyways, and callers may wish to act on or display the commit object sans the signature. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> 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 9f0784a411..37c23daff0 100644
--- a/gpg-interface.h
+++ b/gpg-interface.h
@@ -2,6 +2,7 @@
#define GPG_INTERFACE_H
struct signature_check {
+ char *payload;
char *gpg_output;
char *gpg_status;
char result; /* 0 (not checked),