diff options
Diffstat (limited to 'mail/mail-crypto.h')
-rw-r--r-- | mail/mail-crypto.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h index 806430173e..2508d77304 100644 --- a/mail/mail-crypto.h +++ b/mail/mail-crypto.h @@ -48,21 +48,22 @@ void mail_crypto_pgp_mime_part_encrypt (CamelMimePart **mime_part, CamelMimePart *mail_crypto_pgp_mime_part_decrypt (CamelMimePart *mime_part, CamelException *ex); -/* S/MIME convenience wrappers */ -void mail_crypto_smime_part_sign (CamelMimePart **mime_part, - const char *userid, - CamelCipherHash hash, - CamelException *ex); +/* S/MIME v3 convenience wrappers */ +CamelMimeMessage *mail_crypto_smime_sign (CamelMimeMessage *message, const char *userid, + gboolean signing_time, gboolean detached, + CamelException *ex); -CamelCipherValidity *mail_crypto_smime_part_verify (CamelMimePart *mime_part, - CamelException *ex); +CamelMimeMessage *mail_crypto_smime_certsonly (CamelMimeMessage *message, const char *userid, + GPtrArray *recipients, CamelException *ex); -void mail_crypto_smime_part_encrypt (CamelMimePart **mime_part, - GPtrArray *recipients, - CamelException *ex); +CamelMimeMessage *mail_crypto_smime_encrypt (CamelMimeMessage *message, const char *userid, + GPtrArray *recipients, CamelException *ex); -CamelMimePart *mail_crypto_smime_part_decrypt (CamelMimePart *mime_part, - CamelException *ex); +CamelMimeMessage *mail_crypto_smime_envelope (CamelMimeMessage *message, const char *userid, + GPtrArray *recipients, CamelException *ex); + +CamelMimeMessage *mail_crypto_smime_decode (CamelMimeMessage *message, + CamelCMSValidityInfo **info, CamelException *ex); #ifdef __cplusplus } |