diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-04-13 06:03:23 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-13 06:03:23 +0800 |
commit | dc90015fb89eeb74366c2bb91b07e8d22ca562c9 (patch) | |
tree | ce658ea875771eaddff0496c9d6f902b47abbf95 /camel | |
parent | de35de9442714109256c2615f5a3bc269ecff13c (diff) | |
download | gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.gz gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.zst gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.zip |
Oops, lets not get into a recursive call here ;-)
2001-04-12 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (camel_pgp_context_get_type): Oops, lets not
get into a recursive call here ;-)
* tests/smime/pgp.c: Updated to reflect changes to the PGP code.
* tests/smime/pgp-mime.c: Same.
svn path=/trunk/; revision=9287
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 9 | ||||
-rw-r--r-- | camel/camel-cipher-context.c | 12 | ||||
-rw-r--r-- | camel/camel-pgp-context.c | 2 | ||||
-rw-r--r-- | camel/tests/smime/pgp-mime.c | 8 | ||||
-rw-r--r-- | camel/tests/smime/pgp.c | 8 |
5 files changed, 24 insertions, 15 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index af52d3f97a..506a7cadaa 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,14 @@ 2001-04-12 Jeffrey Stedfast <fejj@ximian.com> + * camel-pgp-context.c (camel_pgp_context_get_type): Oops, lets not + get into a recursive call here ;-) + + * tests/smime/pgp.c: Updated to reflect changes to the PGP code. + + * tests/smime/pgp-mime.c: Same. + +2001-04-12 Jeffrey Stedfast <fejj@ximian.com> + * camel-pgp-mime.c: Updated to reflect the few changes made to the CamelPgpContext class. diff --git a/camel/camel-cipher-context.c b/camel/camel-cipher-context.c index 07fda80fd2..1f6f4af3ec 100644 --- a/camel/camel-cipher-context.c +++ b/camel/camel-cipher-context.c @@ -41,7 +41,7 @@ #define d(x) -#define CCCC(k) CAMEL_CIPHER_CONTEXT_CLASS (k) +#define CCC_CLASS(o) CAMEL_CIPHER_CONTEXT_CLASS(CAMEL_OBJECT_GET_CLASS(o)) struct _CamelCipherContextPrivate { #ifdef ENABLE_THREADS @@ -191,7 +191,7 @@ camel_cipher_sign (CamelCipherContext *context, const char *userid, CamelCipherH CIPHER_LOCK(context); - retval = CCCC (context)->sign (context, userid, hash, istream, ostream, ex); + retval = CCC_CLASS (context)->sign (context, userid, hash, istream, ostream, ex); CIPHER_UNLOCK(context); @@ -229,7 +229,7 @@ camel_cipher_clearsign (CamelCipherContext *context, const char *userid, CamelCi CIPHER_LOCK(context); - retval = CCCC (context)->clearsign (context, userid, hash, istream, ostream, ex); + retval = CCC_CLASS (context)->clearsign (context, userid, hash, istream, ostream, ex); CIPHER_UNLOCK(context); @@ -270,7 +270,7 @@ camel_cipher_verify (CamelCipherContext *context, CamelStream *istream, CIPHER_LOCK(context); - valid = CCCC (context)->verify (context, istream, sigstream, ex); + valid = CCC_CLASS (context)->verify (context, istream, sigstream, ex); CIPHER_UNLOCK(context); @@ -310,7 +310,7 @@ camel_cipher_encrypt (CamelCipherContext *context, gboolean sign, const char *us CIPHER_LOCK(context); - retval = CCCC (context)->encrypt (context, sign, userid, recipients, istream, ostream, ex); + retval = CCC_CLASS (context)->encrypt (context, sign, userid, recipients, istream, ostream, ex); CIPHER_UNLOCK(context); @@ -347,7 +347,7 @@ camel_cipher_decrypt (CamelCipherContext *context, CamelStream *istream, CIPHER_LOCK(context); - retval = CCCC (context)->decrypt (context, istream, ostream, ex); + retval = CCC_CLASS (context)->decrypt (context, istream, ostream, ex); CIPHER_UNLOCK(context); diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index 9414ad3ba2..d5c6b9dde9 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -110,7 +110,7 @@ camel_pgp_context_get_type (void) static CamelType type = CAMEL_INVALID_TYPE; if (type == CAMEL_INVALID_TYPE) { - type = camel_type_register (camel_pgp_context_get_type (), + type = camel_type_register (camel_cipher_context_get_type (), "CamelPgpContext", sizeof (CamelPgpContext), sizeof (CamelPgpContextClass), diff --git a/camel/tests/smime/pgp-mime.c b/camel/tests/smime/pgp-mime.c index 9abac32e91..8564d1bda7 100644 --- a/camel/tests/smime/pgp-mime.c +++ b/camel/tests/smime/pgp-mime.c @@ -26,7 +26,7 @@ int main (int argc, char **argv) CamelSession *session; CamelPgpContext *ctx; CamelException *ex; - CamelPgpValidity *valid; + CamelCipherValidity *valid; CamelMimePart *mime_part, *part; GPtrArray *recipients; @@ -49,7 +49,7 @@ int main (int argc, char **argv) camel_mime_part_set_description (mime_part, "Test of PGP/MIME multipart/signed stuff"); camel_test_push ("PGP/MIME signing"); - camel_pgp_mime_part_sign (ctx, &mime_part, "pgp-mime@xtorshun.org", CAMEL_PGP_HASH_TYPE_SHA1, ex); + camel_pgp_mime_part_sign (ctx, &mime_part, "pgp-mime@xtorshun.org", CAMEL_CIPHER_HASH_SHA1, ex); check_msg (!camel_exception_is_set (ex), "%s", camel_exception_get_description (ex)); check_msg (camel_pgp_mime_is_rfc2015_signed (mime_part), "Huh, the MIME part does not seem to be a valid multipart/signed part"); @@ -60,8 +60,8 @@ int main (int argc, char **argv) camel_test_push ("PGP/MIME verify"); valid = camel_pgp_mime_part_verify (ctx, mime_part, ex); check_msg (!camel_exception_is_set (ex), "%s", camel_exception_get_description (ex)); - check_msg (camel_pgp_validity_get_valid (valid), "%s", camel_pgp_validity_get_description (valid)); - camel_pgp_validity_free (valid); + check_msg (camel_cipher_validity_get_valid (valid), "%s", camel_cipher_validity_get_description (valid)); + camel_cipher_validity_free (valid); camel_test_pull (); camel_object_unref (CAMEL_OBJECT (mime_part)); diff --git a/camel/tests/smime/pgp.c b/camel/tests/smime/pgp.c index 86e419e680..30ee7b96dd 100644 --- a/camel/tests/smime/pgp.c +++ b/camel/tests/smime/pgp.c @@ -22,7 +22,7 @@ int main (int argc, char **argv) CamelSession *session; CamelPgpContext *ctx; CamelException *ex; - CamelPgpValidity *valid; + CamelCipherValidity *valid; CamelStream *stream1, *stream2, *stream3; GPtrArray *recipients; GByteArray *buf; @@ -49,7 +49,7 @@ int main (int argc, char **argv) stream2 = camel_stream_mem_new (); camel_test_push ("PGP signing"); - camel_pgp_sign (ctx, "pgp-mime@xtorshun.org", CAMEL_PGP_HASH_TYPE_SHA1, + camel_pgp_sign (ctx, "pgp-mime@xtorshun.org", CAMEL_CIPHER_HASH_SHA1, stream1, stream2, ex); check_msg (!camel_exception_is_set (ex), "%s", camel_exception_get_description (ex)); camel_test_pull (); @@ -61,8 +61,8 @@ int main (int argc, char **argv) camel_stream_reset (stream2); valid = camel_pgp_verify (ctx, stream1, stream2, ex); check_msg (!camel_exception_is_set (ex), "%s", camel_exception_get_description (ex)); - check_msg (camel_pgp_validity_get_valid (valid), "%s", camel_pgp_validity_get_description (valid)); - camel_pgp_validity_free (valid); + check_msg (camel_cipher_validity_get_valid (valid), "%s", camel_cipher_validity_get_description (valid)); + camel_cipher_validity_free (valid); camel_test_pull (); camel_object_unref (CAMEL_OBJECT (stream1)); |