From ea6569368591c16ec4ef6398016a7d33579a793d Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 21 Jun 2002 19:11:57 +0000 Subject: New source files implementing the CamelCipherContext class for gnupg. 2002-06-21 Jeffrey Stedfast * camel-gpg-context.[c,h]: New source files implementing the CamelCipherContext class for gnupg. * camel-pgp-context.c (camel_pgp_context_new): Return a CamelCipherContext. * camel-pgp-mime.c (camel_pgp_mime_part_decrypt): Take a CamelCipherContext argument rather than a CamelPgpContext since we now have a CamelGpgContext also. (camel_pgp_mime_part_encrypt): Same. (camel_pgp_mime_part_verify): Same. (camel_pgp_mime_part_sign): Same. svn path=/trunk/; revision=17251 --- camel/camel-pgp-context.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'camel/camel-pgp-context.h') diff --git a/camel/camel-pgp-context.h b/camel/camel-pgp-context.h index 0eaa3ec4e3..36d91f7007 100644 --- a/camel/camel-pgp-context.h +++ b/camel/camel-pgp-context.h @@ -60,19 +60,8 @@ typedef struct _CamelPgpContextClass { CamelType camel_pgp_context_get_type (void); -CamelPgpContext *camel_pgp_context_new (CamelSession *session, CamelPgpType type, - const char *path); - -/* PGP routines */ -#define camel_pgp_sign(c, u, h, i, o, e) camel_cipher_sign (CAMEL_CIPHER_CONTEXT (c), u, h, i, o, e) - -#define camel_pgp_clearsign(c, u, h, i, o, e) camel_cipher_clearsign (CAMEL_CIPHER_CONTEXT (c), u, h, i, o, e) - -#define camel_pgp_verify(c, i, s, e) camel_cipher_verify (CAMEL_CIPHER_CONTEXT (c), CAMEL_CIPHER_HASH_DEFAULT, i, s, e) - -#define camel_pgp_encrypt(c, s, u, r, i, o, e) camel_cipher_encrypt (CAMEL_CIPHER_CONTEXT (c), s, u, r, i, o, e) - -#define camel_pgp_decrypt(c, i, o, e) camel_cipher_decrypt (CAMEL_CIPHER_CONTEXT (c), i, o, e) +CamelCipherContext *camel_pgp_context_new (CamelSession *session, CamelPgpType type, + const char *path); #ifdef __cplusplus } -- cgit v1.2.3