2009-12-18 13:57:58 +01:00
|
|
|
Index: evolution-2.29.3.1/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- evolution-2.29.3.1.orig/configure.ac
|
|
|
|
+++ evolution-2.29.3.1/configure.ac
|
|
|
|
@@ -910,6 +910,9 @@ if test "x${enable_nss}" = "xyes" || tes
|
2008-11-03 00:51:24 +01:00
|
|
|
AC_DEFINE(ENABLE_SMIME,1,[Define if SMIME should be enabled])
|
|
|
|
msg_smime="yes (Mozilla NSS)"
|
|
|
|
fi
|
|
|
|
+
|
|
|
|
+ mozilla_nss="$mozilla_nss nss-shared-helper"
|
|
|
|
+
|
|
|
|
AC_DEFINE(HAVE_NSS,1,[Define if you have NSS])
|
|
|
|
AC_DEFINE(HAVE_SSL,1,[Define if you have a supported SSL library])
|
|
|
|
AC_DEFINE_UNQUOTED(MOZILLA_NSS_LIB_DIR,"`$PKG_CONFIG --variable=libdir $mozilla_nss`",[Define to the full path of mozilla nss library])
|
2009-12-18 13:57:58 +01:00
|
|
|
Index: evolution-2.29.3.1/smime/lib/e-cert-db.c
|
|
|
|
===================================================================
|
|
|
|
--- evolution-2.29.3.1.orig/smime/lib/e-cert-db.c
|
|
|
|
+++ evolution-2.29.3.1/smime/lib/e-cert-db.c
|
|
|
|
@@ -73,6 +73,7 @@
|
2008-11-03 00:51:24 +01:00
|
|
|
#include "e-util/e-dialog-utils.h"
|
|
|
|
#include "e-util/e-util-private.h"
|
|
|
|
#include <libedataserverui/e-passwords.h>
|
|
|
|
+#include <nss-shared-helper.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
2009-12-18 13:57:58 +01:00
|
|
|
@@ -166,7 +167,12 @@ initialize_nss (void)
|
2008-11-03 00:51:24 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* we initialize NSS here to make sure it only happens once */
|
|
|
|
- success = (SECSuccess == NSS_InitReadWrite (evolution_dir_path));
|
|
|
|
+ success = (SECSuccess == nsshelp_open_db ("evolution", evolution_dir_path, 0));
|
|
|
|
+
|
|
|
|
+ if (!success) {
|
|
|
|
+ g_warning ("Opening non-shared cert database");
|
|
|
|
+ success = (SECSuccess == NSS_InitReadWrite (evolution_dir_path));
|
|
|
|
+ }
|
|
|
|
if (!success) {
|
|
|
|
success = (SECSuccess == NSS_Init (evolution_dir_path));
|
|
|
|
if (success)
|