comparison mcabber/mcabber/pgp.h @ 2196:8811fe9d6ef0

Improve support for GnuPG v2+ If the gnupg engine detected is not 1.x, do not check the environment variable GPG_AGENT_INFO and do not set up a password callback.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 07 Oct 2015 21:58:38 +0200
parents 84252c616919
children
comparison
equal deleted inserted replaced
2195:40ddaebeb81e 2196:8811fe9d6ef0
7 7
8 #define GPGME_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_USER_1 8 #define GPGME_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_USER_1
9 #include <gpgme.h> 9 #include <gpgme.h>
10 10
11 int gpg_init(const char *priv_key, const char *passphrase); 11 int gpg_init(const char *priv_key, const char *passphrase);
12 int gpg_is_version1(void);
12 void gpg_terminate(void); 13 void gpg_terminate(void);
13 void gpg_set_passphrase(const char *passphrase); 14 void gpg_set_passphrase(const char *passphrase);
14 void gpg_set_private_key(const char *priv_keyid); 15 void gpg_set_private_key(const char *priv_keyid);
15 const char *gpg_get_private_key_id(void); 16 const char *gpg_get_private_key_id(void);
16 char *gpg_verify(const char *gpg_data, const char *text, 17 char *gpg_verify(const char *gpg_data, const char *text,