gpg-interface.hon commit am: teach mercurial patch parser how to read from stdin (9f0aa6e)
   1#ifndef GPG_INTERFACE_H
   2#define GPG_INTERFACE_H
   3
   4struct signature_check {
   5        char *payload;
   6        char *gpg_output;
   7        char *gpg_status;
   8
   9        /*
  10         * possible "result":
  11         * 0 (not checked)
  12         * N (checked but no further result)
  13         * U (untrusted good)
  14         * G (good)
  15         * B (bad)
  16         */
  17        char result;
  18        char *signer;
  19        char *key;
  20};
  21
  22extern void signature_check_clear(struct signature_check *sigc);
  23extern size_t parse_signature(const char *buf, unsigned long size);
  24extern void parse_gpg_output(struct signature_check *);
  25extern int sign_buffer(struct strbuf *buffer, struct strbuf *signature, const char *signing_key);
  26extern 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);
  27extern int git_gpg_config(const char *, const char *, void *);
  28extern void set_signing_key(const char *);
  29extern const char *get_signing_key(void);
  30
  31#endif