On 2009-09-03 02:23 PDT, Amine wrote: > Well, I'll try to be very precise this time. > > I am writing a little Java program that uses an NSS Internal PKCS#11 > Module for signing. Am using Win XP, service pack 3 and, for now, no > Visual C++ is installed. > > So am using the JSS 4.2 that uses NSPR 4.6.4 and NSS 3.11.4. > I've downloaded the JSS Shared library on > ftp://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS_4_2_RTM/WINNT5.0_OPT.OBJ/lib > for the optimized build of jss4.dll and the JSS classes contained in > the jar file in > ftp://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS_4_2_RTM/jss4.jar.
OK, so far, so good. > When exploring the jss4.dll with "dependency walker", I've discovered > that it depends on other libraries that do not exist in my machine. > This libraries are : > - libnspr4.dll > - libplc4.dll > - libplds4.dll > - efsadu.dll > - ieshims.dll > - wer.dll > > (you can check by yourself) The tool you used appears to be misinforming you. The dependencies of the jss4.dll file downloaded from the URL you gave above are precisely these: Image has the following dependencies: nss3.dll smime3.dll ssl3.dll libplc4.dll libplds4.dll libnspr4.dll WSOCK32.dll MSVCRT.dll KERNEL32.dll > I was questioning myself : how a release version of the dll could > depend on other libraries that do not exist in my machine ? It's very simple. You must download the dependencies also. JSS depends on two other packages, NSS and NSPR. You should download the corresponding released versions of those from: ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.4/msvc6.0/WINNT5.0_OPT.OBJ/nspr-4.6.4.zip and ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_4_RTM/msvc6.0/WINNT5.0_OPT.OBJ/nss-3.11.4.zip > Trying to absolutely run my program, I've downloaded these libraries > on the net. It appears that you may have loaded some other developer's copy of these files that were not built for release. Those files have dependencies on other files for which dependencies do not exist in the released versions. > Exploring now libnspr4.dll with "dependency walker", I've discovered > that it depends on the msvcrtd.dll. Once again, msvcrtd.dll does not > exist in my machine, I had to download it. The released versions do not depend on msvcrtd.dll. > Problem N°1: > ------------ > With not going further, when you have to download another libraries to > use the jss4.dll, a release library supposed to work with the internal > dependencies of Win XP, I think there's a real problem. It has always been necessary to download all the required components. I believe this has historically been explained in the release notes. However, I see that the JSS 4.2 release notes have been removed from www.mozilla.org, so that's conjecture on my part. I think that when you get a consistent set of released binaries, your problems may go away. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto