diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2014-06-23 09:05:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-23 15:50:30 -0700 |
commit | 71c214c840782a67801fc8dbf5fe8a4f4fc62d01 (patch) | |
tree | 22b7db0f0ddac955e11d4a6c8a43ce4e9517b36e /gpg-interface.c | |
parent | 01e57b5d91b0c9f2ac93708c5c2cbcd4731ddd34 (diff) | |
download | git-71c214c840782a67801fc8dbf5fe8a4f4fc62d01.tar.gz |
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.c')
-rw-r--r-- | gpg-interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpg-interface.c b/gpg-interface.c index e71b59daf6..ff07012726 100644 --- a/gpg-interface.c +++ b/gpg-interface.c @@ -9,10 +9,12 @@ static const char *gpg_program = "gpg"; void signature_check_clear(struct signature_check *sigc) { + free(sigc->payload); free(sigc->gpg_output); free(sigc->gpg_status); free(sigc->signer); free(sigc->key); + sigc->payload = NULL; sigc->gpg_output = NULL; sigc->gpg_status = NULL; sigc->signer = NULL; |