aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-mime.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-13 05:18:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-13 05:18:40 +0800
commit0417c81c051f9180a38a6ac0054646bf5877e8b0 (patch)
tree7430db8059d71d5111f77a463a1d31d0b9b16dfe /camel/camel-pgp-mime.c
parent0111c4d86fb5c33a61c29868443c746c8c4cf2c5 (diff)
downloadgsoc2013-evolution-0417c81c051f9180a38a6ac0054646bf5877e8b0.tar.gz
gsoc2013-evolution-0417c81c051f9180a38a6ac0054646bf5877e8b0.tar.zst
gsoc2013-evolution-0417c81c051f9180a38a6ac0054646bf5877e8b0.zip
Updated to reflect the few changes made to the CamelPgpContext class.
2001-04-12 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-mime.c: Updated to reflect the few changes made to the CamelPgpContext class. * camel-pgp-context.c: Updated to subclass of CamelCipherContext. * camel-cipher-context.[c,h]: New base class for CamelPgpContext. Also contains the replacement for CamelPgpValidity, CamelCipherValidity. svn path=/trunk/; revision=9283
Diffstat (limited to 'camel/camel-pgp-mime.c')
-rw-r--r--camel/camel-pgp-mime.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/camel/camel-pgp-mime.c b/camel/camel-pgp-mime.c
index c72fc03f5d..a9eef4e7cc 100644
--- a/camel/camel-pgp-mime.c
+++ b/camel/camel-pgp-mime.c
@@ -205,7 +205,7 @@ pgp_mime_part_sign_prepare_part (CamelMimePart *mime_part, GSList **encodings)
**/
void
camel_pgp_mime_part_sign (CamelPgpContext *context, CamelMimePart **mime_part, const char *userid,
- CamelPgpHashType hash, CamelException *ex)
+ CamelCipherHash hash, CamelException *ex)
{
CamelMimePart *part, *signed_part;
CamelMultipart *multipart;
@@ -270,15 +270,15 @@ camel_pgp_mime_part_sign (CamelPgpContext *context, CamelMimePart **mime_part, c
/* construct the container multipart/signed */
switch (hash) {
- case CAMEL_PGP_HASH_TYPE_MD5:
+ case CAMEL_CIPHER_HASH_MD5:
hash_type = "pgp-md5";
break;
- case CAMEL_PGP_HASH_TYPE_SHA1:
+ case CAMEL_CIPHER_HASH_SHA1:
hash_type = "pgp-sha1";
break;
default:
/* set a reasonable default */
- hash = CAMEL_PGP_HASH_TYPE_SHA1;
+ hash = CAMEL_CIPHER_HASH_SHA1;
hash_type = "pgp-sha1";
break;
}
@@ -313,9 +313,9 @@ camel_pgp_mime_part_sign (CamelPgpContext *context, CamelMimePart **mime_part, c
* @mime_part: a multipart/signed MIME Part
* @ex: exception
*
- * Returns a CamelPgpValidity on success or NULL on fail.
+ * Returns a CamelCipherValidity on success or NULL on fail.
**/
-CamelPgpValidity *
+CamelCipherValidity *
camel_pgp_mime_part_verify (CamelPgpContext *context, CamelMimePart *mime_part, CamelException *ex)
{
CamelDataWrapper *wrapper;
@@ -324,7 +324,7 @@ camel_pgp_mime_part_verify (CamelPgpContext *context, CamelMimePart *mime_part,
CamelStreamFilter *filtered_stream;
CamelMimeFilter *crlf_filter, *from_filter;
CamelStream *stream, *sigstream;
- CamelPgpValidity *valid;
+ CamelCipherValidity *valid;
g_return_val_if_fail (mime_part != NULL, NULL);
g_return_val_if_fail (CAMEL_IS_MIME_PART (mime_part), NULL);