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? i have the instructions for when it is built(http://www.mozilla.org/projects/security/pki/pkcs11/netscape/pk11test.html)

I downloaded the NSS source code release nss-3.11.4-with-nspr-4.6.4.tar.gz to my fedora core 4 linux box to attempt to build nss and the test suites.

When i run gmake nss_build_all the code builds correctly without errors
The PKCs#11 test suite is the most important of the three test for my testing included so i began with this
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




In the above output "pk11test.c:55:21: error: secutil.h: No such file or directory" error can be seen I copied secutil.h from ...dist/private/nss to ...dist/public/nss to get around this error(Also dist/public/seccmd dosen't exist but the files secutil.h,zlib.h,zconf.h that i believe should be in the folder are locate in various folder in the nss folder structure) when i type gmake after copyng secutil.h, i get the following errors



suites/security/pkcs11]% gmake
gcc -o Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test -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 Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o -L../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/lib ../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/lib/libsectool.a -Wl,-rpath,'$ORIGIN/../lib' -Wl,-rpath-link,../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/lib -L../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/lib -lssl3 -lsmime3 -lnss3 -L../../../../../../../../dist/Linux2.6_x86_glibc_PTH_DBG.OBJ/lib -lplc4 -lplds4 -lnspr4 -lpthread -ldl -lc Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x675): In function `InitCrypto': /home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:324: undefined reference to `SEC_Init' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x704):/home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:336: undefined reference to `SECMOD_init' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x1054): In function `TestPKEncrypt': /home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:680: undefined reference to `pk11_CopyToSlot' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x151f): In function `TestSymmetricEncrypt': /home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:873: undefined reference to `RNG_GenerateGlobalRandomBytes' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x1665):/home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:907: undefined reference to `pk11_CopyToSlot' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x1c39): In function `TestSign': /home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:1116: undefined reference to `RNG_GenerateGlobalRandomBytes' Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test.o(.text+0x1ea6):/home/cgfitzge/cryptoki/nss-3.11.4/mozilla/security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c:1178: undefined reference to `pk11_CopyToSlot'
collect2: ld returned 1 exit status
gmake: *** [Linux2.6_x86_glibc_PTH_DBG.OBJ/pk11test] Error 1


Any help would be gratefully recieved

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 "

_________________________________________________________________
Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG

_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to