Index: evolution-data-server-2.29.3/camel/camel.c =================================================================== --- evolution-data-server-2.29.3.orig/camel/camel.c +++ evolution-data-server-2.29.3/camel/camel.c @@ -37,6 +37,8 @@ #include #include +#include + #include "camel.h" #include "camel-certdb.h" #include "camel-debug.h" @@ -93,17 +95,21 @@ camel_init (const gchar *configdir, gboo nss_configdir = g_win32_locale_filename_from_utf8 (configdir); #endif - if (!NSS_IsInitialized()) { - nss_initialized = 1; + if (nsshelp_open_db ("evolution", nss_configdir, 0) != SECSuccess) { + g_warning ("Opening non-shared cert database"); + + if (!NSS_IsInitialized()) { + nss_initialized = 1; - if (NSS_InitReadWrite (nss_configdir) == SECFailure) { - /* fall back on using volatile dbs? */ - if (NSS_NoDB_Init (nss_configdir) == SECFailure) { - g_free (nss_configdir); - g_warning ("Failed to initialize NSS"); - nss_initialized = 0; - PR_Unlock(nss_initlock); - return -1; + if (NSS_InitReadWrite (nss_configdir) == SECFailure) { + /* fall back on using volatile dbs? */ + if (NSS_NoDB_Init (nss_configdir) == SECFailure) { + g_free (nss_configdir); + g_warning ("Failed to initialize NSS"); + nss_initialized = 0; + PR_Unlock(nss_initlock); + return -1; + } } } } Index: evolution-data-server-2.29.3/configure.ac =================================================================== --- evolution-data-server-2.29.3.orig/configure.ac +++ evolution-data-server-2.29.3/configure.ac @@ -540,6 +540,7 @@ dnl check if pkg-config files exist (whi done if test -n "$mozilla_nspr" -a -n "$mozilla_nss"; then + mozilla_nss="$mozilla_nss nss-shared-helper" msg_ssl="yes" if test "x$enable_smime" = "xyes"; then AC_DEFINE(ENABLE_SMIME,1,[Define if SMIME should be enabled])