summaryrefslogtreecommitdiff
path: root/gpg-interface.h
diff options
context:
space:
mode:
authorSebastian Götte <jaseg@physik.tu-berlin.de>2013-03-31 18:00:14 +0200
committerJunio C Hamano <gitster@pobox.com>2013-03-31 19:15:11 -0700
commitffb6d7d5c99e4097e512def20b0133b7ee900953 (patch)
tree12ec48239c5fb7d5e0ee25b2c5a2f58c0208a9c0 /gpg-interface.h
parent8617715cc09b7422fe31189f9476f6ade73ede70 (diff)
downloadgit-ffb6d7d5c99e4097e512def20b0133b7ee900953.tar.gz
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 'gpg-interface.h')
-rw-r--r--gpg-interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gpg-interface.h b/gpg-interface.h
index cf99021842..5884aa4052 100644
--- a/gpg-interface.h
+++ b/gpg-interface.h
@@ -1,6 +1,17 @@
#ifndef GPG_INTERFACE_H
#define GPG_INTERFACE_H
+struct signature_check {
+ char *gpg_output;
+ char *gpg_status;
+ char result; /* 0 (not checked),
+ * N (checked but no further result),
+ * G (good)
+ * B (bad) */
+ char *signer;
+ char *key;
+};
+
extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key);
extern int verify_signed_buffer(const char *payload, size_t payload_size, const char *signature, size_t signature_size, struct strbuf *gpg_output, struct strbuf *gpg_status);
extern int git_gpg_config(const char *, const char *, void *);