1#ifndef GPG_INTERFACE_H
2#define GPG_INTERFACE_H
3
4struct signature_check {
5 char *gpg_output;
6 char *gpg_status;
7 char result; /* 0 (not checked),
8 * N (checked but no further result),
9 * G (good)
10 * B (bad) */
11 char *signer;
12 char *key;
13};
14
15extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key);
16extern 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);
17extern int git_gpg_config(const char *, const char *, void *);
18extern void set_signing_key(const char *);
19extern const char *get_signing_key(void);
20
21#endif