aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c
Commit message (Collapse)AuthorAgeFilesLines
* pkcs11: Call C_Finalize() to cancel jobs waiting in C_WaitForSlotEvent()Tobias Brunner2017-11-021-9/+14
| | | | | | | | | | | | | | | | This is not ideal as the call to C_Finalize() should be the last one via the PKCS#11 API. Since the order in which jobs are canceled is undefined we can't be sure there is no other thread still using the library (it could even be the canceled job that still handles a previous slot event). According to PKCS#11 the behavior of C_Finalize() is undefined while other threads still make calls over the API. However, canceling the thread, as done previously, could also be problematic as PKCS#11 libraries could hold locks while in the C_WaitForSlotEvent() call, which might not get released properly when the thread is just canceled, and which then might cause later calls to other API functions to block. Fixes #2437.
* Migrate all enumerators to venumerate() interface changeTobias Brunner2017-05-261-2/+8
|
* lib: All settings use configured namespaceTobias Brunner2014-02-121-4/+4
|
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-1/+1
|
* Centralized thread cancellation in processor_tTobias Brunner2012-06-251-17/+3
| | | | | | | | | | This ensures that no threads are active when plugins and the rest of the daemon are unloaded. callback_job_t was simplified a lot in the process as its main functionality is now contained in processor_t. The parent-child relationships were abandoned as these were only needed to simplify job cancellation.
* Register manager of pkcs11 plugin as library objectMartin Willi2011-08-241-15/+0
|
* Use CRITICAL job priority class for long running dispatcher jobsMartin Willi2011-05-161-2/+2
|
* Revert alloc_str changesMartin Willi2011-04-211-5/+4
| | | | | | This reverts commit fdead26ffe1da8501a6ff5e0639a6f44c723e763. This reverts commit 3e2419ebe32de72d824864eb2e0e677a7c197af1. This reverts commit 17ce69b47a1efd6234960cf7d1f50712aee61db5.
* Use thread save settings alloc_str function where appropriateMartin Willi2011-04-211-4/+5
|
* corrected pkcs11 error messageAndreas Steffen2011-03-011-1/+1
|
* Added a PKCS#11 module option to enforce OS Locking functionsMartin Willi2010-11-121-1/+4
|
* Scheduler and processor have been moved to libstrongswan.Tobias Brunner2010-09-021-2/+1
| | | | | Also reverts 0c21dc000d3cd5c82eb22c4481e6459978456364 as the dependency to libcharon is no longer required.
* Do initial slot enumeration manuallyMartin Willi2010-08-041-5/+11
|
* Defer certificate loading until all PKCS#11 modules are loadedMartin Willi2010-08-041-3/+8
|
* Provide a public PKCS#11 mechanism enumeratorMartin Willi2010-08-041-44/+21
|
* Added enumerator for PKCS#11 tokensMartin Willi2010-08-041-14/+120
|
* Handle NOT_SUPPORT return value from WaitForSlotMartin Willi2010-08-041-1/+1
|
* Added a token add/remove callback function to the managerMartin Willi2010-08-041-1/+16
|
* Enumerate tokens and their mechanisms, wait for slot eventsMartin Willi2010-08-041-9/+222
|
* Moved PKCS#11 library loading to dedicated managerMartin Willi2010-08-041-0/+86