opensc/src
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
..
common common, pkcs11-tool: Use new PKCS #11 API with fallback to old one 2021-01-11 14:49:22 +01:00
libopensc idprime: Create algorithme reference based on the MGF1 flags as the HASH flags are no longer present for RSA-PSS mechanism 2021-01-26 10:53:30 +01:00
minidriver Update upper length for ATR and the comments. 2020-11-04 11:02:56 +01:00
pkcs11 C_Initialize may be called by multiple threads 2021-01-26 12:50:39 +01:00
pkcs15init Use fresh data from FCI instead of FCP for sc_pkcs15init_authenticate() 2021-01-22 18:59:22 +01:00
scconf fixed missing includes 2020-05-11 18:58:12 +02:00
sm Initial support for Polish eID card (e-dowód, eDO) (#2023) 2020-05-19 14:05:13 +02:00
smm fixed 127766 Out-of-bounds read 2019-11-05 21:49:30 +01:00
tests p11test: Explicitly return in case of SKIP macro is used 2021-01-22 19:07:05 +01:00
tools Pkcs11-tool changes to test a modules ability to use threads 2021-01-26 12:50:39 +01:00
ui pcsc: immediately exit on hotplug events 2020-06-09 12:07:04 +02:00
Makefile.am added fuzzing with libFuzzer and OSS-Fuzz 2019-07-26 15:23:02 +02:00
Makefile.mak use compat_getopt_long if getopt_long is not available 2019-03-25 14:30:09 +01:00