Lines Matching refs:gbl
43 struct child_prov_globals *gbl = vgbl; in child_prov_ossl_ctx_free() local
45 CRYPTO_THREAD_lock_free(gbl->lock); in child_prov_ossl_ctx_free()
46 OPENSSL_free(gbl); in child_prov_ossl_ctx_free()
64 struct child_prov_globals *gbl; in ossl_child_provider_init() local
87 gbl = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_CHILD_PROVIDER_INDEX, in ossl_child_provider_init()
89 if (gbl == NULL) in ossl_child_provider_init()
92 *provctx = gbl->c_prov_get0_provider_ctx(gbl->curr_prov); in ossl_child_provider_init()
93 *out = gbl->c_prov_get0_dispatch(gbl->curr_prov); in ossl_child_provider_init()
101 struct child_prov_globals *gbl; in provider_create_child_cb() local
106 gbl = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_CHILD_PROVIDER_INDEX, in provider_create_child_cb()
108 if (gbl == NULL) in provider_create_child_cb()
111 if (!CRYPTO_THREAD_write_lock(gbl->lock)) in provider_create_child_cb()
114 provname = gbl->c_prov_name(prov); in provider_create_child_cb()
120 gbl->curr_prov = prov; in provider_create_child_cb()
158 CRYPTO_THREAD_unlock(gbl->lock); in provider_create_child_cb()
165 struct child_prov_globals *gbl; in provider_remove_child_cb() local
169 gbl = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_CHILD_PROVIDER_INDEX, in provider_remove_child_cb()
171 if (gbl == NULL) in provider_remove_child_cb()
174 provname = gbl->c_prov_name(prov); in provider_remove_child_cb()
201 struct child_prov_globals *gbl; in ossl_provider_init_as_child() local
206 gbl = ossl_lib_ctx_get_data(ctx, OSSL_LIB_CTX_CHILD_PROVIDER_INDEX, in ossl_provider_init_as_child()
208 if (gbl == NULL) in ossl_provider_init_as_child()
211 gbl->handle = handle; in ossl_provider_init_as_child()
215 gbl->c_get_libctx = OSSL_FUNC_core_get_libctx(in); in ossl_provider_init_as_child()
218 gbl->c_provider_register_child_cb in ossl_provider_init_as_child()
222 gbl->c_provider_deregister_child_cb in ossl_provider_init_as_child()
226 gbl->c_prov_name = OSSL_FUNC_provider_name(in); in ossl_provider_init_as_child()
229 gbl->c_prov_get0_provider_ctx in ossl_provider_init_as_child()
233 gbl->c_prov_get0_dispatch = OSSL_FUNC_provider_get0_dispatch(in); in ossl_provider_init_as_child()
236 gbl->c_prov_up_ref in ossl_provider_init_as_child()
240 gbl->c_prov_free = OSSL_FUNC_provider_free(in); in ossl_provider_init_as_child()
248 if (gbl->c_get_libctx == NULL in ossl_provider_init_as_child()
249 || gbl->c_provider_register_child_cb == NULL in ossl_provider_init_as_child()
250 || gbl->c_prov_name == NULL in ossl_provider_init_as_child()
251 || gbl->c_prov_get0_provider_ctx == NULL in ossl_provider_init_as_child()
252 || gbl->c_prov_get0_dispatch == NULL in ossl_provider_init_as_child()
253 || gbl->c_prov_up_ref == NULL in ossl_provider_init_as_child()
254 || gbl->c_prov_free == NULL) in ossl_provider_init_as_child()
257 gbl->lock = CRYPTO_THREAD_lock_new(); in ossl_provider_init_as_child()
258 if (gbl->lock == NULL) in ossl_provider_init_as_child()
261 if (!gbl->c_provider_register_child_cb(gbl->handle, in ossl_provider_init_as_child()
273 struct child_prov_globals *gbl in ossl_provider_deinit_child() local
276 if (gbl == NULL) in ossl_provider_deinit_child()
279 gbl->c_provider_deregister_child_cb(gbl->handle); in ossl_provider_deinit_child()
296 struct child_prov_globals *gbl; in ossl_provider_up_ref_parent() local
299 gbl = ossl_lib_ctx_get_data(ossl_provider_libctx(prov), in ossl_provider_up_ref_parent()
302 if (gbl == NULL) in ossl_provider_up_ref_parent()
306 if (parent_handle == gbl->handle) in ossl_provider_up_ref_parent()
308 return gbl->c_prov_up_ref(parent_handle, activate); in ossl_provider_up_ref_parent()
313 struct child_prov_globals *gbl; in ossl_provider_free_parent() local
316 gbl = ossl_lib_ctx_get_data(ossl_provider_libctx(prov), in ossl_provider_free_parent()
319 if (gbl == NULL) in ossl_provider_free_parent()
323 if (parent_handle == gbl->handle) in ossl_provider_free_parent()
325 return gbl->c_prov_free(ossl_provider_get_parent(prov), deactivate); in ossl_provider_free_parent()