Bugzilla: 82259. improve rootcert load

git-svn-id: svn://10.0.0.236/trunk@95844 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
larryh%netscape.com
2001-05-24 00:17:10 +00:00
parent c3f3442dab
commit c7c89a5198

View File

@@ -72,15 +72,35 @@ static PRBool secmod_ModuleHasRoots(SECMODModule *module)
* The following code is an attempt to automagically find the external root
* module. NOTE: This code should be checked out on the MAC! There must be
* some cross platform support out there to help out with this?
* Note: Keep the #if-defined chunks in order. HPUX must select before UNIX.
*/
static char *dllnames[]= {
"roots.dll", "libroots.so","libroots.sl","Root Certs",
"roots.dll", "libroots.so","libroots.sl","Root Certs",
"nssckbi.dll","libnssckbi.so","libnssckbi.sl","NSS Builtin Root Certs",
"mozckbi.dll","libmozckbi.so","libmozckbi.sl","Mozilla Builtin Root Certs",
"netckbi.dll","libnetckbi.so","libnetckbi.sl","Netscape Builtin Root Certs",
#if defined(XP_WIN32)
"nssckbi.dll",
"roots.dll",
"netckbi.dll",
"mozckbi.dll",
#elif defined(HPUX)
"libnssckbi.sl",
"libroots.sl",
"libnetckbi.sl",
"libmozckbi.sl",
#elif defined(XP_UNIX)
"libnssckbi.so",
"libroots.so",
"libnetckbi.so",
"libmozckbi.so",
#elif defined(XP_MAC)
"NSS Builtin Root Certs",
"Root Certs",
"Netscape Builtin Root Certs",
"Mozilla Builtin Root Certs",
#else
#pragma error,"Uh! Oh! I don't know about this platform."
#endif
0 };
#define MAXDLLNAME 40