From d940c0dad4a4dd5e9b4c5014893c111ebf28e9e7 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 10 Dec 2003 05:25:24 +0000 Subject: put the camel-smime-context.[ch] back in here, remove it from EXTRA_DIST, 2003-12-10 Not Zed * Makefile.am (libcamel_la_SOURCES): put the camel-smime-context.[ch] back in here, remove it from EXTRA_DIST, and make it compile optinally the same way camel-tcp-stream-ssl.c does (#ifdef ...). * camel-smime-context.c (sm_verify_cmsg): add signer info to certvalidity. * camel-cipher-context.c (CamelCipherValidity): Added certinfo to validity for signing and encrypting, so we can find the keys later for a gui. (camel_cipher_validity_add_certinfo): add signer or encrypter info to the validity. (camel_cipher_validity_envelope): add sign/encrypt keys. svn path=/trunk/; revision=23904 --- camel/camel-smime-context.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'camel/camel-smime-context.c') diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c index dd7ed68b3f..64bf07d74c 100644 --- a/camel/camel-smime-context.c +++ b/camel/camel-smime-context.c @@ -30,6 +30,8 @@ #include #endif +#ifdef HAVE_NSS + #include "nss.h" #include #include @@ -635,6 +637,8 @@ sm_verify_cmsg(CamelCipherContext *context, NSSCMSMessage *cmsg, CamelStream *ex cn?cn:"", em?em:"", sm_status_description(status)); + camel_cipher_validity_add_certinfo(valid, CAMEL_CIPHER_VALIDITY_SIGN, cn, em); + if (cn) PORT_Free(cn); if (em) @@ -1059,3 +1063,5 @@ camel_smime_context_get_type(void) return type; } + +#endif /* HAVE_NSS */ -- cgit v1.2.3