aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-04-27 04:09:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-27 04:09:28 +0800
commit7edad05212e8d3f5def44cbc6dee533778fd58d6 (patch)
treeb605c42865d6783f41d44ba7ba152a397ecac8fa
parentac59d9fb458452daf75d535c638cab17e6f17fe5 (diff)
downloadgsoc2013-evolution-7edad05212e8d3f5def44cbc6dee533778fd58d6.tar.gz
gsoc2013-evolution-7edad05212e8d3f5def44cbc6dee533778fd58d6.tar.zst
gsoc2013-evolution-7edad05212e8d3f5def44cbc6dee533778fd58d6.zip
#include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living in /usr/include
svn path=/trunk/; revision=9592
-rw-r--r--camel/camel-smime-context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c
index 703a29b81c..1f0f81e86c 100644
--- a/camel/camel-smime-context.c
+++ b/camel/camel-smime-context.c
@@ -29,7 +29,7 @@
#include "camel-stream-fs.h"
#include "camel-stream-mem.h"
-#include <nss.h>
+#include "nss.h"
#include <cert.h>
#include <secpkcs7.h>
#include <secmime.h>
@@ -114,7 +114,7 @@ camel_smime_context_get_type (void)
/**
* camel_smime_context_new:
* @session: CamelSession
- * @certdb: certificate db
+ * @certdb: certificate db path or NULL to create a volatile temp db
*
* This creates a new CamelSMimeContext object which is used to sign,
* verify, encrypt and decrypt streams.
@@ -128,6 +128,7 @@ camel_smime_context_new (CamelSession *session, const char *certdb)
CERTCertDBHandle *handle;
g_return_val_if_fail (session != NULL, NULL);
+ g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL);
context = CAMEL_SMIME_CONTEXT (camel_object_new (CAMEL_SMIME_CONTEXT_TYPE));