Home
last modified time | relevance | path

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

/openssl-master/crypto/rand/
A Drand_lib.c39 static CRYPTO_RWLOCK *rand_meth_lock; variable
55 rand_meth_lock = CRYPTO_THREAD_lock_new(); in DEFINE_RUN_ONCE_STATIC()
56 if (rand_meth_lock == NULL) in DEFINE_RUN_ONCE_STATIC()
68 CRYPTO_THREAD_lock_free(rand_meth_lock); in DEFINE_RUN_ONCE_STATIC()
69 rand_meth_lock = NULL; in DEFINE_RUN_ONCE_STATIC()
96 CRYPTO_THREAD_lock_free(rand_meth_lock); in ossl_rand_cleanup_int()
97 rand_meth_lock = NULL; in ossl_rand_cleanup_int()
167 if (!CRYPTO_THREAD_write_lock(rand_meth_lock)) in rand_set_rand_method_internal()
174 CRYPTO_THREAD_unlock(rand_meth_lock); in rand_set_rand_method_internal()
190 if (!CRYPTO_THREAD_write_lock(rand_meth_lock)) in RAND_get_rand_method()
[all …]

Completed in 4 milliseconds