Lines Matching refs:NULL
77 if (ctx == NULL) in ossl_lib_ctx_is_child()
88 if (!CRYPTO_THREAD_init_local(&ctx->rcu_local_key, NULL)) in context_init()
92 if (ctx->lock == NULL) in context_init()
102 if (ctx->evp_method_store == NULL) in context_init()
108 if (ctx->provider_conf == NULL) in context_init()
114 if (ctx->drbg == NULL) in context_init()
123 if (ctx->decoder_store == NULL) in context_init()
126 if (ctx->decoder_cache == NULL) in context_init()
131 if (ctx->encoder_store == NULL) in context_init()
136 if (ctx->store_loader_store == NULL) in context_init()
142 if (ctx->provider_store == NULL) in context_init()
147 if (ctx->property_string_data == NULL) in context_init()
151 if (ctx->namemap == NULL) in context_init()
155 if (ctx->property_defns == NULL) in context_init()
159 if (ctx->global_properties == NULL) in context_init()
164 if (ctx->bio_core == NULL) in context_init()
169 if (ctx->drbg_nonce == NULL) in context_init()
174 if (ctx->self_test_cb == NULL) in context_init()
177 if (ctx->indicator_cb == NULL) in context_init()
183 if (ctx->thread_event_handler == NULL) in context_init()
187 if (ctx->fips_prov == NULL) in context_init()
193 if (ctx->threads == NULL) in context_init()
200 if (ctx->child_provider == NULL) in context_init()
229 if (ctx->evp_method_store != NULL) { in context_deinit_objs()
231 ctx->evp_method_store = NULL; in context_deinit_objs()
235 if (ctx->drbg != NULL) { in context_deinit_objs()
237 ctx->drbg = NULL; in context_deinit_objs()
242 if (ctx->provider_conf != NULL) { in context_deinit_objs()
244 ctx->provider_conf = NULL; in context_deinit_objs()
251 if (ctx->decoder_store != NULL) { in context_deinit_objs()
253 ctx->decoder_store = NULL; in context_deinit_objs()
255 if (ctx->decoder_cache != NULL) { in context_deinit_objs()
257 ctx->decoder_cache = NULL; in context_deinit_objs()
262 if (ctx->encoder_store != NULL) { in context_deinit_objs()
264 ctx->encoder_store = NULL; in context_deinit_objs()
268 if (ctx->store_loader_store != NULL) { in context_deinit_objs()
270 ctx->store_loader_store = NULL; in context_deinit_objs()
275 if (ctx->provider_store != NULL) { in context_deinit_objs()
277 ctx->provider_store = NULL; in context_deinit_objs()
281 if (ctx->property_string_data != NULL) { in context_deinit_objs()
283 ctx->property_string_data = NULL; in context_deinit_objs()
286 if (ctx->namemap != NULL) { in context_deinit_objs()
288 ctx->namemap = NULL; in context_deinit_objs()
291 if (ctx->property_defns != NULL) { in context_deinit_objs()
293 ctx->property_defns = NULL; in context_deinit_objs()
296 if (ctx->global_properties != NULL) { in context_deinit_objs()
298 ctx->global_properties = NULL; in context_deinit_objs()
302 if (ctx->bio_core != NULL) { in context_deinit_objs()
304 ctx->bio_core = NULL; in context_deinit_objs()
308 if (ctx->drbg_nonce != NULL) { in context_deinit_objs()
310 ctx->drbg_nonce = NULL; in context_deinit_objs()
314 if (ctx->indicator_cb != NULL) { in context_deinit_objs()
316 ctx->indicator_cb = NULL; in context_deinit_objs()
319 if (ctx->self_test_cb != NULL) { in context_deinit_objs()
321 ctx->self_test_cb = NULL; in context_deinit_objs()
326 if (ctx->thread_event_handler != NULL) { in context_deinit_objs()
328 ctx->thread_event_handler = NULL; in context_deinit_objs()
331 if (ctx->fips_prov != NULL) { in context_deinit_objs()
333 ctx->fips_prov = NULL; in context_deinit_objs()
338 if (ctx->threads != NULL) { in context_deinit_objs()
340 ctx->threads = NULL; in context_deinit_objs()
346 if (ctx->child_provider != NULL) { in context_deinit_objs()
348 ctx->child_provider = NULL; in context_deinit_objs()
353 if (ctx->comp_methods != NULL) { in context_deinit_objs()
355 ctx->comp_methods = NULL; in context_deinit_objs()
363 if (ctx == NULL) in context_deinit()
373 ctx->lock = NULL; in context_deinit()
388 if (!CRYPTO_THREAD_init_local(&default_context_thread_local, NULL)) in DEFINE_RUN_ONCE_STATIC()
415 return NULL; in get_thread_default_context()
424 if (current_defctx == NULL) in get_default_context()
432 defctx = NULL; in set_default_context()
442 if (ctx != NULL && !context_init(ctx)) { in OSSL_LIB_CTX_new()
444 ctx = NULL; in OSSL_LIB_CTX_new()
455 if (ctx == NULL) in OSSL_LIB_CTX_new_from_dispatch()
456 return NULL; in OSSL_LIB_CTX_new_from_dispatch()
460 return NULL; in OSSL_LIB_CTX_new_from_dispatch()
471 if (ctx == NULL) in OSSL_LIB_CTX_new_child()
472 return NULL; in OSSL_LIB_CTX_new_child()
476 return NULL; in OSSL_LIB_CTX_new_child()
485 return CONF_modules_load_file_ex(ctx, config_file, NULL, 0) > 0; in OSSL_LIB_CTX_load_config()
491 if (ctx == NULL || ossl_lib_ctx_is_default(ctx)) in OSSL_LIB_CTX_free()
506 return NULL; in OSSL_LIB_CTX_get0_global_default()
515 if ((current_defctx = get_default_context()) != NULL) { in OSSL_LIB_CTX_set0_default()
516 if (libctx != NULL) in OSSL_LIB_CTX_set0_default()
521 return NULL; in OSSL_LIB_CTX_set0_default()
527 if (default_context_int.drbg != NULL) { in ossl_release_default_drbg_ctx()
529 default_context_int.drbg = NULL; in ossl_release_default_drbg_ctx()
537 if (ctx == NULL) in ossl_lib_ctx_get_concrete()
546 if (ctx == NULL || ctx == get_default_context()) in ossl_lib_ctx_is_default()
564 if (ctx == NULL) in ossl_lib_ctx_get_data()
565 return NULL; in ossl_lib_ctx_get_data()
621 return NULL; in ossl_lib_ctx_get_data()
633 if (ctx == NULL) in ossl_lib_ctx_get_ex_data_global()
634 return NULL; in ossl_lib_ctx_get_ex_data_global()
654 if (libctx == NULL) in ossl_lib_ctx_get_rcukey()
655 return NULL; in ossl_lib_ctx_get_rcukey()
662 if (libctx == NULL) in OSSL_LIB_CTX_get_conf_diagnostics()
670 if (libctx == NULL) in OSSL_LIB_CTX_set_conf_diagnostics()