aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-crypto.h')
-rw-r--r--mail/mail-crypto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h
index 8ea9999809..44d8a00400 100644
--- a/mail/mail-crypto.h
+++ b/mail/mail-crypto.h
@@ -31,16 +31,27 @@ extern "C" {
#pragma }
#endif /* __cplusplus }*/
+typedef enum {
+ PGP_HASH_TYPE_NONE,
+ PGP_HASH_TYPE_MD5,
+ PGP_HASH_TYPE_SHA1
+} PgpHashType;
+
char *mail_crypto_openpgp_decrypt (const char *ciphertext,
+ int *outlen,
CamelException *ex);
char *mail_crypto_openpgp_encrypt (const char *plaintext,
+ int inlen,
const GPtrArray *recipients,
gboolean sign,
+ const char *userid,
CamelException *ex);
char *mail_crypto_openpgp_clearsign (const char *plaintext,
const char *userid,
+ PgpHashType hash,
+ gboolean detached,
CamelException *ex);
#ifdef __cplusplus