diff options
Diffstat (limited to 'mail/mail-crypto.h')
-rw-r--r-- | mail/mail-crypto.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/mail/mail-crypto.h b/mail/mail-crypto.h index 1f90665f3a..806430173e 100644 --- a/mail/mail-crypto.h +++ b/mail/mail-crypto.h @@ -25,15 +25,14 @@ #include <camel/camel.h> #include <camel/camel-pgp-mime.h> +#include <camel/camel-smime.h> #ifdef __cplusplus extern "C" { #pragma } -#endif /* __cplusplus }*/ - -gboolean mail_crypto_is_smime_v3_signed (CamelMimePart *mime_part); -gboolean mail_crypto_is_pkcs7_mime (CamelMimePart *mime_part); +#endif /* __cplusplus } */ +/* PGP/MIME convenience wrappers */ void mail_crypto_pgp_mime_part_sign (CamelMimePart **mime_part, const char *userid, CamelCipherHash hash, @@ -49,6 +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); + +CamelCipherValidity *mail_crypto_smime_part_verify (CamelMimePart *mime_part, + CamelException *ex); + +void mail_crypto_smime_part_encrypt (CamelMimePart **mime_part, + GPtrArray *recipients, + CamelException *ex); + +CamelMimePart *mail_crypto_smime_part_decrypt (CamelMimePart *mime_part, + CamelException *ex); + #ifdef __cplusplus } #endif /* __cplusplus */ |