aboutsummaryrefslogtreecommitdiffstats
path: root/camel/tests
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-13 06:03:23 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-13 06:03:23 +0800
commitdc90015fb89eeb74366c2bb91b07e8d22ca562c9 (patch)
treece658ea875771eaddff0496c9d6f902b47abbf95 /camel/tests
parentde35de9442714109256c2615f5a3bc269ecff13c (diff)
downloadgsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar
gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.gz
gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.bz2
gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.lz
gsoc2013-evolution-dc90015fb89eeb74366c2bb91b07e8d22ca562c9.tar.xz
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/tests')
-rw-r--r--camel/tests/smime/pgp-mime.c8
-rw-r--r--camel/tests/smime/pgp.c8
2 files changed, 8 insertions, 8 deletions
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));