Skip to content

Commit bc21e51

Browse files
nojocodexmtrojnar
authored andcommitted
Allow OS-based thread synchronization in C_Initialize() call.
1 parent ab01a0a commit bc21e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p11_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int pkcs11_initialize(PKCS11_CTX_private *cpriv)
7777

7878
memset(&args, 0, sizeof(args));
7979
/* Unconditionally say using OS locking primitives is OK */
80-
// args.flags |= CKF_OS_LOCKING_OK;
80+
args.flags |= CKF_OS_LOCKING_OK;
8181
args.pReserved = cpriv->init_args;
8282
rv = cpriv->method->C_Initialize(&args);
8383
if (rv && rv != CKR_CRYPTOKI_ALREADY_INITIALIZED) {

0 commit comments

Comments
 (0)