opensc/src/tools
Doug Engert f704e4f23e Pkcs11-tool changes to test a modules ability to use threads
Option --use-locking has C_Initialize pass in parameters with the
CKF_OS_LOCKING_OK to tell module to use threads. The default is it passes NULL
which says threads are not needed.

The following is not designed to be used by the general user. There are for debugging
and test scripts and only compiled if the system has threads.

    Option --test-threads <arg> can be passed multiple times. Each one starts a thread.
    <arg> is a list of 2 byte commands seperated by ":". The thread will execute these.
    Current commands are:
       IN - C_Initialize(NULL)
       IL - C_Initialize with CKF_OS_LOCKING_OK
       Pn - Pause for n seconds
       GI - C_GetInfo
       SL - C_GetSlotList
       Tn - C_GetTokenInfo  from slot_index n

These are just enough calls to see if threads are working in the module.
Output is written to stderr.

 Changes to be committed:
	modified:   doc/tools/pkcs11-tool.1.xml
	modified:   src/tools/Makefile.am
	modified:   src/tools/pkcs11-tool.c
2021-01-26 12:50:39 +01:00
..
Makefile.am Pkcs11-tool changes to test a modules ability to use threads 2021-01-26 12:50:39 +01:00
Makefile.mak pkcs15-tool.c - print Supported_algorithms from tokenInfo 2020-05-09 23:59:51 +02:00
cardos-tool.c cardos-tool: cleanup 2020-01-12 09:40:54 +01:00
cryptoflex-tool.c tools: release context when card connection fails 2019-03-07 22:18:54 +02:00
dnie-tool.c dnie-tool: cleanup 2020-01-12 09:42:09 +01:00
egk-tool-cmdline.c Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
egk-tool-cmdline.h Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
egk-tool.c egk-tool: fix missed initialisation of card pointer 2019-05-02 10:09:08 +02:00
egk-tool.ggo.in Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
eidenv.c tools: correctly check return value of getopt_long() 2020-01-12 09:42:30 +01:00
exe.manifest Windows: Added support for notifications 2017-08-02 19:03:16 +02:00
fread_to_eof.c Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
fread_to_eof.h created opensc-asn1 2017-11-17 10:03:54 +01:00
gids-tool.c gids-tool: Remove empty condition 2020-03-04 21:27:56 +01:00
goid-tool-cmdline.c Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
goid-tool-cmdline.h Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
goid-tool.c Fix spelling error in comments 2020-08-29 23:22:34 +02:00
goid-tool.ggo.in Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
iasecc-tool.c tools: release context when card connection fails 2019-03-07 22:18:54 +02:00
netkey-tool.c Add sc_disconnect_card() before exit() and initialize two variables 2020-11-09 10:21:14 +01:00
npa-tool-cmdline.c Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
npa-tool-cmdline.h Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
npa-tool.c spelling fixes 2020-08-30 10:35:14 +02:00
npa-tool.ggo.in Fix typo arguement -> argument in documentation 2020-05-07 02:34:12 +02:00
openpgp-tool.c OpenPGP: add additional vendors 2020-03-10 09:19:31 +01:00
opensc-asn1-cmdline.c Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
opensc-asn1-cmdline.h Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
opensc-asn1.c created opensc-asn1 2017-11-17 10:03:54 +01:00
opensc-asn1.ggo.in created opensc-asn1 2017-11-17 10:03:54 +01:00
opensc-explorer.c opensc-explorer, command "info" - added information about LCS 2021-01-22 19:04:22 +01:00
opensc-notify-cmdline.c Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
opensc-notify-cmdline.h Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
opensc-notify.c spelling fixes 2020-08-30 10:35:14 +02:00
opensc-notify.ggo.in opensc-notify: fix typo 2018-05-27 23:18:13 +02:00
opensc-tool.c spelling fixes 2020-08-30 10:35:14 +02:00
org.opensc-project.mac.opensc-notify.plist.in use correct naming scheme for launch agents 2020-11-10 23:23:11 +01:00
org.opensc-project.mac.pkcs11-register.plist.in use correct naming scheme for launch agents 2020-11-10 23:23:11 +01:00
org.opensc.notify.desktop.in Add GenericName to the desktop file 2018-07-04 09:50:07 +02:00
piv-tool.c Fix spelling error 2020-08-29 23:17:02 +02:00
pkcs11-register-cmdline.c Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
pkcs11-register-cmdline.h Update gengetopt generated code with a new version to remove hardcoded paths 2020-03-04 21:27:56 +01:00
pkcs11-register.c pkcs11-register: free up memory before exiting 2020-10-27 09:48:02 +01:00
pkcs11-register.desktop.in added pkcs11-register 2019-04-08 11:16:13 +02:00
pkcs11-register.ggo.in added pkcs11-register 2019-04-08 11:16:13 +02:00
pkcs11-tool.c Pkcs11-tool changes to test a modules ability to use threads 2021-01-26 12:50:39 +01:00
pkcs15-crypt.c Fixed Dereference before null check 2020-02-04 13:56:53 +01:00
pkcs15-init.c Remove compiler warnings/errors 2020-06-22 10:47:02 +02:00
pkcs15-tool.c Print error message for the case that a PUK object is not available for a PIN 2020-07-22 22:58:57 +02:00
sc-hsm-tool.c spelling fixes 2020-08-30 10:35:14 +02:00
sceac-example.c There may be a memory leak in main in /src/tools/sceac-example.c 2020-10-16 14:00:23 +02:00
util.c util: refactor listing card drivers 2020-01-12 09:36:49 +01:00
util.h util: refactor listing card drivers 2020-01-12 09:36:49 +01:00
versioninfo-opensc-notify.rc.in fix typos 2018-04-15 09:34:45 +02:00
versioninfo-tools.rc.in win32: Load notification icons from Windows DLLs 2017-08-03 00:19:26 +02:00
westcos-tool.c westcos-tool.c:fix memory leaks in dst->modulus.data and dst->exponent.data 2020-10-14 23:09:36 +02:00