Lines Matching refs:NULL

30     OSSL_DECODER *decoder = NULL;  in ossl_decoder_new()
32 if ((decoder = OPENSSL_zalloc(sizeof(*decoder))) == NULL) in ossl_decoder_new()
33 return NULL; in ossl_decoder_new()
36 return NULL; in ossl_decoder_new()
54 if (decoder == NULL) in OSSL_DECODER_free()
89 if (methdata->tmp_store == NULL) in get_tmp_decoder_store()
96 if (store != NULL) in dealloc_tmp_decoder_store()
110 if (store == NULL in reserve_decoder_store()
111 && (store = get_decoder_store(methdata->libctx)) == NULL) in reserve_decoder_store()
121 if (store == NULL in unreserve_decoder_store()
122 && (store = get_decoder_store(methdata->libctx)) == NULL) in unreserve_decoder_store()
133 void *method = NULL; in get_decoder_from_store()
141 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_decoder_from_store()
145 size_t l = (q == NULL ? strlen(names) : (size_t)(q - names)); in get_decoder_from_store()
148 return NULL; in get_decoder_from_store()
153 return NULL; in get_decoder_from_store()
155 if (store == NULL in get_decoder_from_store()
156 && (store = get_decoder_store(methdata->libctx)) == NULL) in get_decoder_from_store()
157 return NULL; in get_decoder_from_store()
160 return NULL; in get_decoder_from_store()
180 if (names != NULL) { in put_decoder_in_store()
183 l = (q == NULL ? strlen(names) : (size_t)(q - names)); in put_decoder_in_store()
186 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_decoder_in_store()
190 if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL) in put_decoder_in_store()
202 OSSL_DECODER *decoder = NULL; in ossl_decoder_from_algorithm()
206 if ((decoder = ossl_decoder_new()) == NULL) in ossl_decoder_from_algorithm()
207 return NULL; in ossl_decoder_from_algorithm()
209 if ((decoder->base.name = ossl_algorithm_get1_first_name(algodef)) == NULL) { in ossl_decoder_from_algorithm()
211 return NULL; in ossl_decoder_from_algorithm()
215 = ossl_parse_property(libctx, algodef->property_definition)) == NULL) { in ossl_decoder_from_algorithm()
217 return NULL; in ossl_decoder_from_algorithm()
223 if (decoder->newctx == NULL) in ossl_decoder_from_algorithm()
227 if (decoder->freectx == NULL) in ossl_decoder_from_algorithm()
231 if (decoder->get_params == NULL) in ossl_decoder_from_algorithm()
236 if (decoder->gettable_params == NULL) in ossl_decoder_from_algorithm()
241 if (decoder->set_ctx_params == NULL) in ossl_decoder_from_algorithm()
246 if (decoder->settable_ctx_params == NULL) in ossl_decoder_from_algorithm()
251 if (decoder->does_selection == NULL) in ossl_decoder_from_algorithm()
256 if (decoder->decode == NULL) in ossl_decoder_from_algorithm()
260 if (decoder->export_object == NULL) in ossl_decoder_from_algorithm()
270 if (!((decoder->newctx == NULL && decoder->freectx == NULL) in ossl_decoder_from_algorithm()
271 || (decoder->newctx != NULL && decoder->freectx != NULL)) in ossl_decoder_from_algorithm()
272 || decoder->decode == NULL) { in ossl_decoder_from_algorithm()
275 return NULL; in ossl_decoder_from_algorithm()
278 if (prov != NULL && !ossl_provider_up_ref(prov)) { in ossl_decoder_from_algorithm()
280 return NULL; in ossl_decoder_from_algorithm()
307 void *method = NULL; in construct_decoder()
317 if (method == NULL) in construct_decoder()
346 const char *const propq = properties != NULL ? properties : ""; in inner_ossl_decoder_fetch()
347 void *method = NULL; in inner_ossl_decoder_fetch()
350 if (store == NULL || namemap == NULL) { in inner_ossl_decoder_fetch()
352 return NULL; in inner_ossl_decoder_fetch()
355 id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0; in inner_ossl_decoder_fetch()
364 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) { in inner_ossl_decoder_fetch()
374 OSSL_PROVIDER *prov = NULL; in inner_ossl_decoder_fetch()
382 &mcm, methdata)) != NULL) { in inner_ossl_decoder_fetch()
389 if (id == 0 && name != NULL) in inner_ossl_decoder_fetch()
403 if ((id != 0 || name != NULL) && method == NULL) { in inner_ossl_decoder_fetch()
406 if (name == NULL) in inner_ossl_decoder_fetch()
411 name == NULL ? "<null>" : name, id, in inner_ossl_decoder_fetch()
412 properties == NULL ? "<null>" : properties); in inner_ossl_decoder_fetch()
425 methdata.tmp_store = NULL; in OSSL_DECODER_fetch()
435 if (store != NULL) in ossl_decoder_store_cache_flush()
445 if (store != NULL) in ossl_decoder_store_remove_all_provided()
456 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_provider()
466 if (!ossl_assert(decoder != NULL)) { in OSSL_DECODER_get0_properties()
477 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_parsed_properties()
487 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_get_number()
507 if (decoder->base.prov != NULL) { in OSSL_DECODER_is_a()
555 methdata.tmp_store = NULL; in OSSL_DECODER_do_all_provided()
556 (void)inner_ossl_decoder_fetch(&methdata, NULL, NULL /* properties */); in OSSL_DECODER_do_all_provided()
560 if (methdata.tmp_store != NULL) in OSSL_DECODER_do_all_provided()
570 if (decoder == NULL) in OSSL_DECODER_names_do_all()
573 if (decoder->base.prov != NULL) { in OSSL_DECODER_names_do_all()
586 if (decoder != NULL && decoder->gettable_params != NULL) { in OSSL_DECODER_gettable_params()
591 return NULL; in OSSL_DECODER_gettable_params()
596 if (decoder != NULL && decoder->get_params != NULL) in OSSL_DECODER_get_params()
604 if (decoder != NULL && decoder->settable_ctx_params != NULL) { in OSSL_DECODER_settable_ctx_params()
609 return NULL; in OSSL_DECODER_settable_ctx_params()
637 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_params()
642 if (ctx->decoder_insts == NULL) in OSSL_DECODER_CTX_set_params()
654 if (decoderctx == NULL || decoder->set_ctx_params == NULL) in OSSL_DECODER_CTX_set_params()
664 if (ctx != NULL) { in OSSL_DECODER_CTX_free()
665 if (ctx->cleanup != NULL) in OSSL_DECODER_CTX_free()