diff options
author | Not Zed <NotZed@Ximian.com> | 2003-12-10 13:25:24 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-12-10 13:25:24 +0800 |
commit | d940c0dad4a4dd5e9b4c5014893c111ebf28e9e7 (patch) | |
tree | 887d349d4b1c0a1a25068ec2d8dd41a688ae1449 /camel/camel-smime-context.c | |
parent | ad454163140688485032c256a447fde8089b7e6b (diff) | |
download | gsoc2013-evolution-d940c0dad4a4dd5e9b4c5014893c111ebf28e9e7.tar.gz gsoc2013-evolution-d940c0dad4a4dd5e9b4c5014893c111ebf28e9e7.tar.zst gsoc2013-evolution-d940c0dad4a4dd5e9b4c5014893c111ebf28e9e7.zip |
put the camel-smime-context.[ch] back in here, remove it from EXTRA_DIST,
2003-12-10 Not Zed <NotZed@Ximian.com>
* 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
Diffstat (limited to 'camel/camel-smime-context.c')
-rw-r--r-- | camel/camel-smime-context.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <config.h> #endif +#ifdef HAVE_NSS + #include "nss.h" #include <cms.h> #include <cert.h> @@ -635,6 +637,8 @@ sm_verify_cmsg(CamelCipherContext *context, NSSCMSMessage *cmsg, CamelStream *ex cn?cn:"<unknown>", em?em:"<unknown>", 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 */ |