1 #ifndef GPG_INTERFACE_H
2 #define GPG_INTERFACE_H
4 struct signature_check {
12 * N (checked but no further result)
22 extern void signature_check_clear(struct signature_check *sigc);
23 extern size_t parse_signature(const char *buf, unsigned long size);
24 extern void parse_gpg_output(struct signature_check *);
25 extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key);
26 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);
27 extern int git_gpg_config(const char *, const char *, void *);
28 extern void set_signing_key(const char *);
29 extern const char *get_signing_key(void);