Mercurial > ~mikael > mcabber > hg
view mcabber/src/pgp.h @ 1530:29c505d43b3e
Use random resource suffix by default
By default a random suffix is appended to the resource name,
as recommended in rfc3920bis ("For the sake of proper security, a resource
identifier SHOULD be random").
This behaviour can be altered with the new option "disable_random_resource".
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 04 Oct 2008 14:13:49 +0200 |
parents | f89844a0448a |
children |
line wrap: on
line source
#ifndef __PGP_H__ #define __PGP_H__ 1 #include <config.h> #ifdef HAVE_GPGME #define GPGME_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_USER_1 #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); int gpg_test_passphrase(void); #endif /* HAVE_GPGME */ int gpg_enabled(void); #endif /* __PGP_H__ */ /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */