diff options
-rw-r--r-- | security/nss/lib/nss/nssinit.c | 12 |
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") |