summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorSebastian Götte <jaseg@physik.tu-berlin.de>2013-03-31 16:00:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-01 02:15:11 (GMT)
commitffb6d7d5c99e4097e512def20b0133b7ee900953 (patch)
tree12ec48239c5fb7d5e0ee25b2c5a2f58c0208a9c0 /commit.h
parent8617715cc09b7422fe31189f9476f6ade73ede70 (diff)
downloadgit-ffb6d7d5c99e4097e512def20b0133b7ee900953.zip
git-ffb6d7d5c99e4097e512def20b0133b7ee900953.tar.gz
git-ffb6d7d5c99e4097e512def20b0133b7ee900953.tar.bz2
Move commit GPG signature verification to commit.c
Signed-off-by: Sebastian Götte <jaseg@physik-pool.tu-berlin.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 2d90d9c..c24b844 100644
--- a/commit.h
+++ b/commit.h
@@ -5,6 +5,7 @@
#include "tree.h"
#include "strbuf.h"
#include "decorate.h"
+#include "gpg-interface.h"
struct commit_list {
struct commit *item;
@@ -232,4 +233,13 @@ extern void print_commit_list(struct commit_list *list,
const char *format_cur,
const char *format_last);
+/*
+ * Check the signature of the given commit. The result of the check is stored in
+ * sig->result, 'G' for a good signature, 'B' for a bad signature and 'N'
+ * for no signature at all.
+ * This may allocate memory for sig->gpg_output, sig->gpg_status, sig->signer
+ * and sig->key.
+ */
+extern void check_commit_signature(const struct commit* commit, struct signature_check *sigc);
+
#endif /* COMMIT_H */