aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-cipher-context.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-11-05 08:42:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-11-05 08:42:40 +0800
commitd0375813d86145111e6bc5da07e565157de451e9 (patch)
tree3ae20f9fdd14847b7fda402668c5bca59aff4559 /camel/camel-cipher-context.h
parent0c29bfd43c82a09225733235db2d9cd9a79b07ae (diff)
downloadgsoc2013-evolution-d0375813d86145111e6bc5da07e565157de451e9.tar.gz
gsoc2013-evolution-d0375813d86145111e6bc5da07e565157de451e9.tar.zst
gsoc2013-evolution-d0375813d86145111e6bc5da07e565157de451e9.zip
new (unfinished) api to peek inside smime parts to tell us whats in it.
2003-11-05 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (camel_smime_context_describe_part): new (unfinished) api to peek inside smime parts to tell us whats in it. 2003-11-03 Not Zed <NotZed@Ximian.com> * camel-gpg-context.c (gpg_encrypt): Make this output the full multipart/encrypted part, not just the encrypted content part. * camel-cipher-context.c (camel_cipher_sign): change to output full mime part, not just a stream. (camel_cipher_canonical_to_stream): utility function to canonicalise a mimepart to a stream. * camel-smime-context.c (sm_encode_cmsmessage): removed. (sm_sign): change interface to output a full mime-part, not just a part of a mime part in multipart/signed mode. svn path=/trunk/; revision=23187
Diffstat (limited to 'camel/camel-cipher-context.h')
-rw-r--r--camel/camel-cipher-context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-cipher-context.h b/camel/camel-cipher-context.h
index 5d9218b83e..db83e92438 100644
--- a/camel/camel-cipher-context.h
+++ b/camel/camel-cipher-context.h
@@ -71,7 +71,7 @@ typedef struct _CamelCipherContextClass {
const char * (*hash_to_id)(CamelCipherContext *context, CamelCipherHash hash);
int (*sign) (CamelCipherContext *context, const char *userid, CamelCipherHash hash,
- struct _CamelStream *istream, struct _CamelMimePart *sigpart, CamelException *ex);
+ struct _CamelMimePart *ipart, struct _CamelMimePart *opart, CamelException *ex);
CamelCipherValidity * (*verify) (CamelCipherContext *context, CamelCipherHash hash,
struct _CamelStream *istream, struct _CamelMimePart *sigpart,
@@ -107,7 +107,7 @@ const char * camel_cipher_hash_to_id (CamelCipherContext *context, CamelCip
/* cipher routines */
int camel_cipher_sign (CamelCipherContext *context, const char *userid, CamelCipherHash hash,
- struct _CamelStream *istream, struct _CamelMimePart *sigpart, CamelException *ex);
+ struct _CamelMimePart *ipart, struct _CamelMimePart *opart, CamelException *ex);
CamelCipherValidity *camel_cipher_verify (CamelCipherContext *context, CamelCipherHash hash,
struct _CamelStream *istream, struct _CamelMimePart *sigpart,
CamelException *ex);
@@ -132,6 +132,9 @@ void camel_cipher_validity_set_description (CamelCipherValidity
void camel_cipher_validity_clear (CamelCipherValidity *validity);
void camel_cipher_validity_free (CamelCipherValidity *validity);
+/* utility functions */
+int camel_cipher_canonical_to_stream(CamelMimePart *part, CamelStream *ostream);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */