Lines Matching refs:NULL

30     OSSL_ENCODER *encoder = NULL;  in ossl_encoder_new()
32 if ((encoder = OPENSSL_zalloc(sizeof(*encoder))) == NULL) in ossl_encoder_new()
33 return NULL; in ossl_encoder_new()
36 return NULL; in ossl_encoder_new()
54 if (encoder == NULL) in OSSL_ENCODER_free()
89 if (methdata->tmp_store == NULL) in get_tmp_encoder_store()
96 if (store != NULL) in dealloc_tmp_encoder_store()
110 if (store == NULL in reserve_encoder_store()
111 && (store = get_encoder_store(methdata->libctx)) == NULL) in reserve_encoder_store()
121 if (store == NULL in unreserve_encoder_store()
122 && (store = get_encoder_store(methdata->libctx)) == NULL) in unreserve_encoder_store()
133 void *method = NULL; in get_encoder_from_store()
141 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_encoder_from_store()
145 size_t l = (q == NULL ? strlen(names) : (size_t)(q - names)); in get_encoder_from_store()
148 return NULL; in get_encoder_from_store()
153 return NULL; in get_encoder_from_store()
155 if (store == NULL in get_encoder_from_store()
156 && (store = get_encoder_store(methdata->libctx)) == NULL) in get_encoder_from_store()
157 return NULL; in get_encoder_from_store()
160 return NULL; in get_encoder_from_store()
180 if (names != NULL) { in put_encoder_in_store()
183 l = (q == NULL ? strlen(names) : (size_t)(q - names)); in put_encoder_in_store()
186 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_encoder_in_store()
190 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store()
202 OSSL_ENCODER *encoder = NULL; in encoder_from_algorithm()
206 if ((encoder = ossl_encoder_new()) == NULL) in encoder_from_algorithm()
207 return NULL; in encoder_from_algorithm()
209 if ((encoder->base.name = ossl_algorithm_get1_first_name(algodef)) == NULL) { in encoder_from_algorithm()
211 return NULL; in encoder_from_algorithm()
215 = ossl_parse_property(libctx, algodef->property_definition)) == NULL) { in encoder_from_algorithm()
217 return NULL; in encoder_from_algorithm()
223 if (encoder->newctx == NULL) in encoder_from_algorithm()
228 if (encoder->freectx == NULL) in encoder_from_algorithm()
233 if (encoder->get_params == NULL) in encoder_from_algorithm()
238 if (encoder->gettable_params == NULL) in encoder_from_algorithm()
243 if (encoder->set_ctx_params == NULL) in encoder_from_algorithm()
248 if (encoder->settable_ctx_params == NULL) in encoder_from_algorithm()
253 if (encoder->does_selection == NULL) in encoder_from_algorithm()
258 if (encoder->encode == NULL) in encoder_from_algorithm()
262 if (encoder->import_object == NULL) in encoder_from_algorithm()
267 if (encoder->free_object == NULL) in encoder_from_algorithm()
278 if (!((encoder->newctx == NULL && encoder->freectx == NULL) in encoder_from_algorithm()
279 || (encoder->newctx != NULL && encoder->freectx != NULL) in encoder_from_algorithm()
280 || (encoder->import_object != NULL && encoder->free_object != NULL) in encoder_from_algorithm()
281 || (encoder->import_object == NULL && encoder->free_object == NULL)) in encoder_from_algorithm()
282 || encoder->encode == NULL) { in encoder_from_algorithm()
285 return NULL; in encoder_from_algorithm()
288 if (prov != NULL && !ossl_provider_up_ref(prov)) { in encoder_from_algorithm()
290 return NULL; in encoder_from_algorithm()
317 void *method = NULL; in construct_encoder()
327 if (method == NULL) in construct_encoder()
356 const char *const propq = properties != NULL ? properties : ""; in inner_ossl_encoder_fetch()
357 void *method = NULL; in inner_ossl_encoder_fetch()
360 if (store == NULL || namemap == NULL) { in inner_ossl_encoder_fetch()
362 return NULL; in inner_ossl_encoder_fetch()
365 id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0; in inner_ossl_encoder_fetch()
374 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) { in inner_ossl_encoder_fetch()
384 OSSL_PROVIDER *prov = NULL; in inner_ossl_encoder_fetch()
392 &mcm, methdata)) != NULL) { in inner_ossl_encoder_fetch()
412 if ((id != 0 || name != NULL) && method == NULL) { in inner_ossl_encoder_fetch()
415 if (name == NULL) in inner_ossl_encoder_fetch()
420 name == NULL ? "<null>" : name, id, in inner_ossl_encoder_fetch()
421 properties == NULL ? "<null>" : properties); in inner_ossl_encoder_fetch()
434 methdata.tmp_store = NULL; in OSSL_ENCODER_fetch()
444 if (store != NULL) in ossl_encoder_store_cache_flush()
454 if (store != NULL) in ossl_encoder_store_remove_all_provided()
465 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_provider()
475 if (!ossl_assert(encoder != NULL)) { in OSSL_ENCODER_get0_properties()
486 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_parsed_properties()
496 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_get_number()
516 if (encoder->base.prov != NULL) { in OSSL_ENCODER_is_a()
546 methdata.tmp_store = NULL; in OSSL_ENCODER_do_all_provided()
547 (void)inner_ossl_encoder_fetch(&methdata, NULL, NULL /* properties */); in OSSL_ENCODER_do_all_provided()
551 if (methdata.tmp_store != NULL) in OSSL_ENCODER_do_all_provided()
561 if (encoder == NULL) in OSSL_ENCODER_names_do_all()
564 if (encoder->base.prov != NULL) { in OSSL_ENCODER_names_do_all()
577 if (encoder != NULL && encoder->gettable_params != NULL) { in OSSL_ENCODER_gettable_params()
582 return NULL; in OSSL_ENCODER_gettable_params()
587 if (encoder != NULL && encoder->get_params != NULL) in OSSL_ENCODER_get_params()
594 if (encoder != NULL && encoder->settable_ctx_params != NULL) { in OSSL_ENCODER_settable_ctx_params()
599 return NULL; in OSSL_ENCODER_settable_ctx_params()
621 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_params()
626 if (ctx->encoder_insts == NULL) in OSSL_ENCODER_CTX_set_params()
636 if (encoderctx == NULL || encoder->set_ctx_params == NULL) in OSSL_ENCODER_CTX_set_params()
646 if (ctx != NULL) { in OSSL_ENCODER_CTX_free()