Merge branch 'master' into next
[git/mjg.git] / gpg-interface.h
bloba85cb5bc97cdd61000b4c48c54faa656aa3cfaca
1 #ifndef GPG_INTERFACE_H
2 #define GPG_INTERFACE_H
4 struct signature_check {
5 char *gpg_output;
6 char *gpg_status;
7 char result; /* 0 (not checked),
8 * N (checked but no further result),
9 * U (untrusted good),
10 * G (good)
11 * B (bad) */
12 char *signer;
13 char *key;
16 extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key);
17 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);
18 extern int git_gpg_config(const char *, const char *, void *);
19 extern void set_signing_key(const char *);
20 extern const char *get_signing_key(void);
22 #endif