diff options
Diffstat (limited to 'mail/mail-crypto.h')
-rw-r--r-- | mail/mail-crypto.h | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h index 44d8a00400..250f46c022 100644 --- a/mail/mail-crypto.h +++ b/mail/mail-crypto.h @@ -38,11 +38,11 @@ typedef enum { } PgpHashType; char *mail_crypto_openpgp_decrypt (const char *ciphertext, + int cipherlen, int *outlen, CamelException *ex); -char *mail_crypto_openpgp_encrypt (const char *plaintext, - int inlen, +char *mail_crypto_openpgp_encrypt (const char *in, int inlen, const GPtrArray *recipients, gboolean sign, const char *userid, @@ -51,9 +51,36 @@ char *mail_crypto_openpgp_encrypt (const char *plaintext, char *mail_crypto_openpgp_clearsign (const char *plaintext, const char *userid, PgpHashType hash, - gboolean detached, CamelException *ex); +char *mail_crypto_openpgp_sign (const char *in, int inlen, + const char *userid, + PgpHashType hash, + CamelException *ex); + +gboolean mail_crypto_openpgp_verify (const char *in, int inlen, + const char *sigin, int siglen, + CamelException *ex); + +gboolean is_rfc2015_signed (CamelMimePart *part); + +gboolean is_rfc2015_encrypted (CamelMimePart *part); + +void pgp_mime_part_sign (CamelMimePart **mime_part, + const gchar *userid, + PgpHashType hash, + CamelException *ex); + +gboolean pgp_mime_part_verify (CamelMimePart *mime_part, + CamelException *ex); + +void pgp_mime_part_encrypt (CamelMimePart **mime_part, + const GPtrArray *recipients, + CamelException *ex); + +CamelMimePart *pgp_mime_part_decrypt (CamelMimePart *mime_part, + CamelException *ex); + #ifdef __cplusplus } #endif /* __cplusplus */ |