view mcabber/mcabber/pgp.h @ 2187:e3b66c8ead4f

PGP: Change gpg_encrypt() so that several encryption keys can be used
author Mikael Berthe <>
date Sun, 04 Oct 2015 19:04:04 +0200
parents e6d355e50d7a
children 84252c616919
line wrap: on
line source

#ifndef __MCABBER_PGP_H__
#define __MCABBER_PGP_H__ 1

#include <mcabber/config.h>


#include <gpgme.h>

int   gpg_init(const char *priv_key, const char *passphrase);
void  gpg_terminate(void);
void  gpg_set_passphrase(const char *passphrase);
void  gpg_set_private_key(const char *priv_keyid);
char *gpg_verify(const char *gpg_data, const char *text,
                 gpgme_sigsum_t *sigsum);
char *gpg_sign(const char *gpg_data);
char *gpg_decrypt(const char *gpg_data);
char *gpg_encrypt(const char *gpg_data, const char *keyid[], size_t n);

int   gpg_test_passphrase(void);

#endif /* HAVE_GPGME */

int gpg_enabled(void);

#endif /* __MCABBER_PGP_H__ */

/* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2:  For Vim users... */