Provide recursive mutex' just in case the PKCS#11 library requires it
[strongswan.git] / 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)
 {
-       *data = mutex_create(MUTEX_TYPE_DEFAULT);
+       *data = mutex_create(MUTEX_TYPE_RECURSIVE);
        return CKR_OK;
 }