Home
last modified time | relevance | path

Searched refs:lock_cs (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/lib/libipsecutil/common/
H A Dipsec_libssl_setup.c104 static mutex_t *lock_cs; variable
232 if ((lock_cs = OPENSSL_malloc_fn(CRYPTO_num_locks_fn() * in thread_setup()
237 OPENSSL_free_fn(lock_cs); in thread_setup()
243 (void) mutex_init(&(lock_cs[i]), USYNC_THREAD, NULL); in thread_setup()
260 (void) mutex_destroy(&(lock_cs[i])); in thread_cleanup()
261 OPENSSL_free_fn(lock_cs); in thread_cleanup()
271 (void) mutex_lock(&(lock_cs[type])); in solaris_locking_callback()
274 (void) mutex_unlock(&(lock_cs[type])); in solaris_locking_callback()
/titanic_41/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c297 static mutex_t *lock_cs; variable
305 (void) mutex_lock(&(lock_cs[type])); in locking_cb()
308 (void) mutex_unlock(&(lock_cs[type])); in locking_cb()
342 lock_cs = OPENSSL_malloc(CRYPTO_num_locks() * sizeof (mutex_t)); in KMF_Plugin_Initialize()
343 if (lock_cs == NULL) { in KMF_Plugin_Initialize()
350 OPENSSL_free(lock_cs); in KMF_Plugin_Initialize()
357 (void) mutex_init(&lock_cs[i], USYNC_THREAD, NULL); in KMF_Plugin_Initialize()