Provide recursive mutex' just in case the PKCS#11 library requires it
authorMartin Willi <martin@revosec.ch>
Fri, 27 May 2011 14:07:58 +0000 (16:07 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 1 Jun 2011 10:03:44 +0000 (12:03 +0200)
src/libstrongswan/plugins/pkcs11/pkcs11_library.c

index 6f79268..fa2f3c1 100644 (file)
@@ -739,7 +739,7 @@ void pkcs11_library_trim(char *str, int len)
  */
 static CK_RV CreateMutex(CK_VOID_PTR_PTR data)
 {
  */
 static CK_RV CreateMutex(CK_VOID_PTR_PTR data)
 {
-       *data = mutex_create(MUTEX_TYPE_DEFAULT);
+       *data = mutex_create(MUTEX_TYPE_RECURSIVE);
        return CKR_OK;
 }
 
        return CKR_OK;
 }