aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-crypto.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-17 05:33:17 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-17 05:33:17 +0800
commitd8fcf587007ce67a1eda2b036599ac3f7e643af9 (patch)
treec10cd6f83ebbc602754b5c4598fbb2f3b2eeb03c /mail/mail-crypto.h
parentae9d99bda30e7a5fd2347fe00daf0f85e8c408e3 (diff)
downloadgsoc2013-evolution-d8fcf587007ce67a1eda2b036599ac3f7e643af9.tar.gz
gsoc2013-evolution-d8fcf587007ce67a1eda2b036599ac3f7e643af9.tar.zst
gsoc2013-evolution-d8fcf587007ce67a1eda2b036599ac3f7e643af9.zip
Removed (this now exists in camel/camel-smime.c).
2001-05-16 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_is_smime_v3_signed): Removed (this now exists in camel/camel-smime.c). (mail_crypto_is_pkcs7_mime): Same. (mail_crypto_smime_part_sign): new (mail_crypto_smime_part_verify): new (mail_crypto_smime_part_encrypt): new (mail_crypto_smime_part_decrypt): new (mail_crypto_pgp_mime_part_sign): Added code to set an exception if the context fails to be created. (mail_crypto_pgp_mime_part_verify): And here... (mail_crypto_pgp_mime_part_encrypt): Same. (mail_crypto_pgp_mime_part_decrypt): And here too. svn path=/trunk/; revision=9856
Diffstat (limited to 'mail/mail-crypto.h')
-rw-r--r--mail/mail-crypto.h23
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 */