Lines Matching refs:lock
220 CRYPTO_RWLOCK *lock; member
301 CRYPTO_THREAD_lock_free(store->lock); in ossl_provider_store_free()
318 || (store->lock = CRYPTO_THREAD_lock_new()) == NULL) { in ossl_provider_store_new()
343 if (!CRYPTO_THREAD_write_lock(store->lock)) in ossl_provider_disable_fallback_loading()
346 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_disable_fallback_loading()
370 if (!CRYPTO_THREAD_write_lock(store->lock)) in ossl_provider_info_add_to_store()
394 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_info_add_to_store()
420 if (!CRYPTO_THREAD_write_lock(store->lock)) in ossl_provider_find()
425 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_find()
543 if (!CRYPTO_THREAD_read_lock(store->lock)) in ossl_provider_new()
551 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_new()
640 if (!CRYPTO_THREAD_write_lock(store->lock)) in ossl_provider_add_to_store()
662 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_add_to_store()
700 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_add_to_store()
1094 int lock = 1; in provider_deactivate() local
1105 lock = 0; in provider_deactivate()
1107 if (lock && !CRYPTO_THREAD_read_lock(store->lock)) in provider_deactivate()
1109 if (lock && !CRYPTO_THREAD_write_lock(prov->flag_lock)) { in provider_deactivate()
1110 CRYPTO_THREAD_unlock(store->lock); in provider_deactivate()
1145 if (lock) { in provider_deactivate()
1147 CRYPTO_THREAD_unlock(store->lock); in provider_deactivate()
1170 static int provider_activate(OSSL_PROVIDER *prov, int lock, int upcalls) in provider_activate() argument
1182 lock = 0; in provider_activate()
1192 if (lock && !CRYPTO_THREAD_read_lock(store->lock)) { in provider_activate()
1200 if (lock && !CRYPTO_THREAD_write_lock(prov->flag_lock)) { in provider_activate()
1201 CRYPTO_THREAD_unlock(store->lock); in provider_activate()
1215 if (lock) { in provider_activate()
1217 CRYPTO_THREAD_unlock(store->lock); in provider_activate()
1242 if (!CRYPTO_THREAD_read_lock(store->lock)) in provider_flush_store_cache()
1245 CRYPTO_THREAD_unlock(store->lock); in provider_flush_store_cache()
1274 if (!CRYPTO_THREAD_read_lock(store->lock)) in provider_remove_store_methods()
1277 CRYPTO_THREAD_unlock(store->lock); in provider_remove_store_methods()
1353 if (!CRYPTO_THREAD_read_lock(store->lock)) in provider_activate_fallbacks()
1356 CRYPTO_THREAD_unlock(store->lock); in provider_activate_fallbacks()
1360 if (!CRYPTO_THREAD_write_lock(store->lock)) in provider_activate_fallbacks()
1365 CRYPTO_THREAD_unlock(store->lock); in provider_activate_fallbacks()
1409 CRYPTO_THREAD_unlock(store->lock); in provider_activate_fallbacks()
1440 if (!CRYPTO_THREAD_read_lock(store->lock)) in ossl_provider_doall_activated()
1444 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_doall_activated()
1485 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_doall_activated()
1504 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_doall_activated()
1977 if (!CRYPTO_THREAD_read_lock(store->lock)) in ossl_provider_default_props_update()
1986 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_default_props_update()
2027 if (!CRYPTO_THREAD_write_lock(store->lock)) { in ossl_provider_register_child_cb()
2072 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_register_child_cb()
2092 if (!CRYPTO_THREAD_write_lock(store->lock)) in ossl_provider_deregister_child_cb()
2104 CRYPTO_THREAD_unlock(store->lock); in ossl_provider_deregister_child_cb()