aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-07-15 10:10:14 +0200
committerMartin Willi <martin@revosec.ch>2010-08-04 09:26:20 +0200
commitfe876b24d9ddd34194d35dff9f8ea5290e93ee5a (patch)
treefeb7cc12867c40a07bba00630f85b607d82554c2 /src
parent66033012c9a30308d41f97b8235edd0c2fcf9c55 (diff)
downloadstrongswan-fe876b24d9ddd34194d35dff9f8ea5290e93ee5a.tar.bz2
strongswan-fe876b24d9ddd34194d35dff9f8ea5290e93ee5a.tar.xz
Handle NOT_SUPPORT return value from WaitForSlot
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/pkcs11/pkcs11_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c
index 8869b5583..2c2ebbdf1 100644
--- a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c
+++ b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c
@@ -202,7 +202,7 @@ static job_requeue_t dispatch_slot_events(lib_entry_t *entry)
old = thread_cancelability(TRUE);
rv = entry->lib->f->C_WaitForSlotEvent(0, &slot, NULL);
thread_cancelability(old);
- if (rv == CKR_NO_EVENT)
+ if (rv == CKR_FUNCTION_NOT_SUPPORTED || rv == CKR_NO_EVENT)
{
DBG1(DBG_CFG, "module '%s' does not support hot-plugging, cancelled",
entry->name);