conor fitzgerald wrote:
Hello All
I hope this is the correct mailing list for PKCS #11 Test Suites problems
I am currently building the PKCS #11 Test Suites and have encountered
some issues
I want to use the run the suites against a PKCS #11
implementation(PKCS#11 version 2.11)
Firstly at http://www.mozilla.org/projects/security/pki/pkcs11/ it
states that " Build instructions for the Netscape PKCS #11 Test Suites
will be available soon", does anyone have these build instructions?
No, sorry. In some sense you've figured out how to build the test
suites (cd into the right directory and run gmake). It's just that
the test suites don't build against NSS 3.x yet, as Nelson pointed
out.
I changed to directory
nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11
and type gmake or gmake all
suites/security/pkcs11]% gmake all
gcc -o Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o -c -g -fPIC -DLINUX1_2
-Di386 -D_XOPEN_SOURCE -DLINUX2_1 -ansi -Wall -pipe -DLINUX -Dlinux
-D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR -DNSPR20=1 -DXP_UNIX
-DDEBUG -UNDEBUG -DDEBUG_cgfitzge -D_REENTRANT
-I../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/include
-I../../../../../../../../dist/public/
-I../../../../../../../../dist/private/
-I../../../../../../../../dist/public/seccmd
-I../../../../../../../../dist/public/dbm
-I../../../../../../../../dist/public/nss pk11test.c
pk11test.c:55:21: error: secutil.h: No such file or directory
pk11test.c: In function ‘InitCrypto’:
pk11test.c:336: warning: implicit declaration of function ‘SECMOD_init’
pk11test.c: In function ‘TestPKEncrypt’:
pk11test.c:610: warning: pointer targets in assignment differ in signedness
pk11test.c:676: warning: pointer targets in assignment differ in signedness
pk11test.c:814: warning: implicit declaration of function
‘SECKEY_DestroyPrivateKey’
pk11test.c:825: warning: implicit declaration of function
‘SECKEY_DestroyPublicKey’
pk11test.c: In function ‘TestSymmetricEncrypt’:
pk11test.c:873: warning: implicit declaration of function
‘RNG_GenerateGlobalRandomBytes’
pk11test.c:881: warning: pointer targets in assignment differ in signedness
pk11test.c: In function ‘TestSign’:
pk11test.c:1108: warning: pointer targets in assignment differ in
signedness
pk11test.c:1175: warning: pointer targets in assignment differ in
signedness
gmake: *** [Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o] Error 1
I can give you a patch that will allow the compiler to find secutil.h.
But the other two warning messages, about undeclared functions
'SECMOD_init' and 'RNG_GenerateGlobalRandomBytes', clearly show that
this code needs to be updated to work with NSS 3.x.
'SECMOD_init' is now subsumed by NSS_Initialize or one of its variants.
'RNG_GenerateGlobalRandomBytes' should be changed to
'PK11_GenerateRandom'.
Also could someone tell me where the regress and reporter source is
available to download, I read on the mozilla website "The Netscape PKCS
#11 test suites make use of two testing tools whose source is available
with the source for the test suites "
I have the source code, but still need to review it for open
source release.
In summary, the remaining work is
1. release 'regress', 'reporter', and perhaps a third tool called
'replacer'.
2. update the test suites to work with NSS 3.x.
I second Nelson's suggestion of looking into 'pk11util'.
Wan-Teh
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto