#include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living in...
authorJeffrey Stedfast <fejj@src.gnome.org>
Thu, 26 Apr 2001 20:09:28 +0000 (20:09 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 26 Apr 2001 20:09:28 +0000 (20:09 +0000)
camel/camel-smime-context.c

index 703a29b..1f0f81e 100644 (file)
@@ -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));