From ffb6d7d5c99e4097e512def20b0133b7ee900953 Mon Sep 17 00:00:00 2001 From: Sebastian Götte Date: Sun, 31 Mar 2013 18:00:14 +0200 Subject: Move commit GPG signature verification to commit.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Götte Signed-off-by: Junio C Hamano --- commit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 2d90d9c27c..c24b844ad6 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 */ -- cgit v1.2.3