summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-05-24 21:00:55 +0000
committerwtc%netscape.com <devnull@localhost>2002-05-24 21:00:55 +0000
commit875e65bc5978e80e9665e176b3545cd045bfefa6 (patch)
tree4745e33603148a042b16cecf7c6d2011a05e22ba
parent80d3b9d23afb4df7bc0afe52d68776f97776d8b8 (diff)
downloadnss-hg-875e65bc5978e80e9665e176b3545cd045bfefa6.tar.gz
Bug 142575: added function forwarder for 'mktemp' for "bug compatibility".
-rw-r--r--security/nss/lib/nss/nssinit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/security/nss/lib/nss/nssinit.c b/security/nss/lib/nss/nssinit.c
index 22e56c1d1..bc24ca535 100644
--- a/security/nss/lib/nss/nssinit.c
+++ b/security/nss/lib/nss/nssinit.c
@@ -52,6 +52,18 @@
#include "pki3hack.h"
+/*
+ * On Windows nss3.dll needs to export the symbol 'mktemp' to be
+ * fully backward compatible with the nss3.dll in NSS 3.2.x and
+ * 3.3.x. This symbol was unintentionally exported and its
+ * definition (in DBM) was moved from nss3.dll to softokn3.dll
+ * in NSS 3.4. See bug 142575.
+ */
+#ifdef WIN32
+/* Function forwarder to mktemp in softokn3 */
+#pragma comment(linker, "/export:mktemp=softokn3.mktemp")
+#endif
+
#define NSS_MAX_FLAG_SIZE sizeof("readOnly")+sizeof("noCertDB")+ \
sizeof("noModDB")+sizeof("forceOpen")+sizeof("passwordRequired")+ \
sizeof ("optimizeSpace")