Lines Matching refs:NULL

51     BIO *new_bio = NULL;  in OSSL_DECODER_from_bio()
54 if (in == NULL) { in OSSL_DECODER_from_bio()
71 if (new_bio == NULL) in OSSL_DECODER_from_bio()
82 ok = decoder_process(NULL, &data); in OSSL_DECODER_from_bio()
86 = ctx->start_input_type != NULL && ctx->input_structure != NULL in OSSL_DECODER_from_bio()
89 = ctx->start_input_type != NULL ? "Input type: " : ""; in OSSL_DECODER_from_bio()
91 = ctx->input_structure != NULL ? "Input structure: " : ""; in OSSL_DECODER_from_bio()
93 = ctx->start_input_type != NULL && ctx->input_structure != NULL in OSSL_DECODER_from_bio()
96 = ctx->start_input_type != NULL ? ctx->start_input_type : ""; in OSSL_DECODER_from_bio()
98 = ctx->input_structure != NULL ? ctx->input_structure : ""; in OSSL_DECODER_from_bio()
112 if (new_bio != NULL) { in OSSL_DECODER_from_bio()
124 if ((b = BIO_new(BIO_s_file())) == NULL) { in bio_from_file()
126 return NULL; in bio_from_file()
137 if (b != NULL) in OSSL_DECODER_from_fp()
151 if (pdata == NULL || *pdata == NULL || pdata_len == NULL) { in OSSL_DECODER_from_data()
168 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_selection()
184 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_type()
200 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_input_structure()
216 OSSL_DECODER_INSTANCE *decoder_inst = NULL; in ossl_decoder_instance_new()
222 if (!ossl_assert(decoder != NULL)) { in ossl_decoder_instance_new()
227 if ((decoder_inst = OPENSSL_zalloc(sizeof(*decoder_inst))) == NULL) in ossl_decoder_instance_new()
233 if (props == NULL) { in ossl_decoder_instance_new()
244 if (decoder_inst->input_type == NULL) { in ossl_decoder_instance_new()
255 if (prop != NULL) { in ossl_decoder_instance_new()
269 return NULL; in ossl_decoder_instance_new()
274 if (decoder_inst != NULL) { in ossl_decoder_instance_free()
275 if (decoder_inst->decoder != NULL) in ossl_decoder_instance_free()
277 decoder_inst->decoderctx = NULL; in ossl_decoder_instance_free()
279 decoder_inst->decoder = NULL; in ossl_decoder_instance_free()
290 if ((dest = OPENSSL_zalloc(sizeof(*dest))) == NULL) in ossl_decoder_instance_dup()
291 return NULL; in ossl_decoder_instance_dup()
302 if (dest->decoderctx == NULL) { in ossl_decoder_instance_dup()
312 return NULL; in ossl_decoder_instance_dup()
320 if (ctx->decoder_insts == NULL in ossl_decoder_ctx_add_decoder_inst()
322 sk_OSSL_DECODER_INSTANCE_new_null()) == NULL) { in ossl_decoder_ctx_add_decoder_inst()
343 OSSL_DECODER_INSTANCE *decoder_inst = NULL; in OSSL_DECODER_CTX_add_decoder()
344 const OSSL_PROVIDER *prov = NULL; in OSSL_DECODER_CTX_add_decoder()
345 void *decoderctx = NULL; in OSSL_DECODER_CTX_add_decoder()
346 void *provctx = NULL; in OSSL_DECODER_CTX_add_decoder()
348 if (!ossl_assert(ctx != NULL) || !ossl_assert(decoder != NULL)) { in OSSL_DECODER_CTX_add_decoder()
356 if ((decoderctx = decoder->newctx(provctx)) == NULL in OSSL_DECODER_CTX_add_decoder()
358 ossl_decoder_instance_new(decoder, decoderctx)) == NULL) in OSSL_DECODER_CTX_add_decoder()
361 decoderctx = NULL; in OSSL_DECODER_CTX_add_decoder()
369 if (decoderctx != NULL) in OSSL_DECODER_CTX_add_decoder()
407 void *decoderctx = NULL; in collect_extra_decoder()
408 OSSL_DECODER_INSTANCE *di = NULL; in collect_extra_decoder()
438 if ((decoderctx = decoder->newctx(provctx)) == NULL) in collect_extra_decoder()
441 if ((di = ossl_decoder_instance_new(decoder, decoderctx)) == NULL) { in collect_extra_decoder()
520 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_add_extra()
529 if (ctx->decoder_insts == NULL) in OSSL_DECODER_CTX_add_extra()
539 if (skdecoders == NULL) { in OSSL_DECODER_CTX_add_extra()
595 if (ctx == NULL || ctx->decoder_insts == NULL) in OSSL_DECODER_CTX_get_num_decoders()
603 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct()
614 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_construct_data()
625 if (!ossl_assert(ctx != NULL)) { in OSSL_DECODER_CTX_set_cleanup()
636 if (ctx == NULL) in OSSL_DECODER_CTX_get_construct()
637 return NULL; in OSSL_DECODER_CTX_get_construct()
643 if (ctx == NULL) in OSSL_DECODER_CTX_get_construct_data()
644 return NULL; in OSSL_DECODER_CTX_get_construct_data()
651 if (ctx == NULL) in OSSL_DECODER_CTX_get_cleanup()
652 return NULL; in OSSL_DECODER_CTX_get_cleanup()
660 OSSL_DECODER *decoder = NULL; in OSSL_DECODER_export()
661 void *decoderctx = NULL; in OSSL_DECODER_export()
663 if (!(ossl_assert(decoder_inst != NULL) in OSSL_DECODER_export()
664 && ossl_assert(reference != NULL) in OSSL_DECODER_export()
665 && ossl_assert(export_cb != NULL) in OSSL_DECODER_export()
666 && ossl_assert(export_cbarg != NULL))) { in OSSL_DECODER_export()
680 if (decoder_inst == NULL) in OSSL_DECODER_INSTANCE_get_decoder()
681 return NULL; in OSSL_DECODER_INSTANCE_get_decoder()
688 if (decoder_inst == NULL) in OSSL_DECODER_INSTANCE_get_decoder_ctx()
689 return NULL; in OSSL_DECODER_INSTANCE_get_decoder_ctx()
696 if (decoder_inst == NULL) in OSSL_DECODER_INSTANCE_get_input_type()
697 return NULL; in OSSL_DECODER_INSTANCE_get_input_type()
705 if (decoder_inst == NULL) in OSSL_DECODER_INSTANCE_get_input_structure()
706 return NULL; in OSSL_DECODER_INSTANCE_get_input_structure()
715 OSSL_DECODER_INSTANCE *decoder_inst = NULL; in decoder_process()
716 OSSL_DECODER *decoder = NULL; in decoder_process()
717 OSSL_CORE_BIO *cbio = NULL; in decoder_process()
724 const char *data_type = NULL; in decoder_process()
725 const char *data_structure = NULL; in decoder_process()
742 if (params == NULL) { in decoder_process()
765 if (ctx->construct != NULL) { in decoder_process()
799 if (p == NULL || p->data_type != OSSL_PARAM_OCTET_STRING) in decoder_process()
802 if (new_data.bio == NULL) in decoder_process()
808 if (p != NULL && !OSSL_PARAM_get_utf8_string_ptr(p, &data_type)) in decoder_process()
813 if (p != NULL && !OSSL_PARAM_get_utf8_string_ptr(p, &data_structure)) in decoder_process()
829 if (data_type != NULL && data_structure != NULL in decoder_process()
831 data_structure = NULL; in decoder_process()
856 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
890 if (decoder == NULL && ctx->start_input_type != NULL in decoder_process()
907 if (decoder != NULL && !ossl_decoder_fast_is_a(decoder, new_input_type, in decoder_process()
922 if (data_type != NULL && !OSSL_DECODER_is_a(new_decoder, data_type)) { in decoder_process()
936 if (data_structure != NULL in decoder_process()
937 && (new_input_structure == NULL in decoder_process()
955 && ctx->input_structure != NULL in decoder_process()
956 && new_input_structure != NULL) { in decoder_process()