comparison mcabber/mcabber/pgp.h @ 1668:41c26b7d2890

Install mcabber headers * Change mcabber headers naming scheme * Move 'src/' -> 'mcabber/' * Add missing include <mcabber/config.h>'s * Create and install clean config.h version in 'include/' * Move "dirty" config.h version to 'mcabber/' * Add $(top_srcdir) to compiler include path * Update modules HOWTO
author Myhailo Danylenko <isbear@ukrpost.net>
date Mon, 18 Jan 2010 15:36:19 +0200
parents mcabber/src/pgp.h@f89844a0448a
children e6d355e50d7a
comparison
equal deleted inserted replaced
1667:8af0e0ad20ad 1668:41c26b7d2890
1 #ifndef __MCABBER_PGP_H__
2 #define __MCABBER_PGP_H__ 1
3
4 #include <mcabber/config.h>
5
6 #ifdef HAVE_GPGME
7
8 #define GPGME_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_USER_1
9 #include <gpgme.h>
10
11 int gpg_init(const char *priv_key, const char *passphrase);
12 void gpg_terminate(void);
13 void gpg_set_passphrase(const char *passphrase);
14 void gpg_set_private_key(const char *priv_keyid);
15 char *gpg_verify(const char *gpg_data, const char *text,
16 gpgme_sigsum_t *sigsum);
17 char *gpg_sign(const char *gpg_data);
18 char *gpg_decrypt(const char *gpg_data);
19 char *gpg_encrypt(const char *gpg_data, const char *keyid);
20
21 int gpg_test_passphrase(void);
22
23 #endif /* HAVE_GPGME */
24
25 int gpg_enabled(void);
26
27 #endif /* __MCABBER_PGP_H__ */
28
29 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */