You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-24 05:39:17 +03:00
The multi instance token support patch series also increased the maximum number of tokens managed (NUMBER_SLOTS_MANAGED in slotmgr.h) from 6 to 1024. The testcase gen_purpose passes a slot-id that is supposed to be out of range to functions C_GetSlotInfo, C_GetTokenInfo, C_GetMechanismList, and C_InitToken and expects CKR_SLOT_ID_INVALID to be returned. With the increased number of managed slots, the slot-id used by the testcase (i.e,. 999) is no longer out of range. This commit changes the testcase to use slot-id 9999, so that it is out of range again. Signed-off-by: Ingo Franzki <ifranzki@linux.vnet.ibm.com>
openCryptoki Test Programs This directory contains programs designed to test the functionality of openCryptoki and PKCS#11. The rely on STDLL's installed to the standard system location. Many of the programs have command line options for passing the slot number to use (default is slot 0) as well as other options. All programs expect that the a slot has been intialized using pkcsconf. The expected user pin is "01234567" and this can also be set using pkcsconf. The expected PINs can also be changed by modifying DEFAULT_USER_PIN and DEFAULT_SO_PIN in include/regress.h. For correct testcase execution, the token should be initialized before and after running the testcases. crypto ------ This directory contains testcases to test various crypto algorithms. login ----- This directory contains testcases to test login functionality in pkcs11 and opencryptoki. pkcs11 ------ This directory contains tests that tests various api/functionality in pkcs11 specification. misc_tests ---------- This directory contains tests to test various functionality and operations in opencryptoki. ock_test.sh ----------- This driver runs the various testcases on various tokens. TODO: Needs to be modified and tested for new testcase structure. For help, send mail to the openCryptoki mailing list at opencryptoki-users@lists.sourceforge.net