Lines Matching refs:NULL

62     if (ctx->cleanup == NULL || ctx->construct == NULL) {  in OSSL_ENCODER_to_bio()
75 if ((b = BIO_new(BIO_s_file())) == NULL) { in bio_from_file()
77 return NULL; in bio_from_file()
88 if (b != NULL) in OSSL_ENCODER_to_fp()
100 BUF_MEM *buf = NULL; in OSSL_ENCODER_to_data()
103 if (pdata_len == NULL) { in OSSL_ENCODER_to_data()
110 if (out != NULL in OSSL_ENCODER_to_data()
115 if (pdata != NULL && *pdata != NULL) { in OSSL_ENCODER_to_data()
131 if (pdata != NULL) { in OSSL_ENCODER_to_data()
132 if (*pdata != NULL) { in OSSL_ENCODER_to_data()
138 buf->data = NULL; in OSSL_ENCODER_to_data()
149 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_selection()
166 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_type != NULL)) { in OSSL_ENCODER_CTX_set_output_type()
178 if (!ossl_assert(ctx != NULL) || !ossl_assert(output_structure != NULL)) { in OSSL_ENCODER_CTX_set_output_structure()
190 OSSL_ENCODER_INSTANCE *encoder_inst = NULL; in ossl_encoder_instance_new()
196 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_instance_new()
201 if ((encoder_inst = OPENSSL_zalloc(sizeof(*encoder_inst))) == NULL) in ossl_encoder_instance_new()
212 if (props == NULL) { in ossl_encoder_instance_new()
222 if (encoder_inst->output_type == NULL) { in ossl_encoder_instance_new()
233 if (prop != NULL) in ossl_encoder_instance_new()
242 return NULL; in ossl_encoder_instance_new()
247 if (encoder_inst != NULL) { in ossl_encoder_instance_free()
248 if (encoder_inst->encoder != NULL) in ossl_encoder_instance_free()
250 encoder_inst->encoderctx = NULL; in ossl_encoder_instance_free()
252 encoder_inst->encoder = NULL; in ossl_encoder_instance_free()
262 if (ctx->encoder_insts == NULL in ossl_encoder_ctx_add_encoder_inst()
264 sk_OSSL_ENCODER_INSTANCE_new_null()) == NULL) { in ossl_encoder_ctx_add_encoder_inst()
285 OSSL_ENCODER_INSTANCE *encoder_inst = NULL; in OSSL_ENCODER_CTX_add_encoder()
286 const OSSL_PROVIDER *prov = NULL; in OSSL_ENCODER_CTX_add_encoder()
287 void *encoderctx = NULL; in OSSL_ENCODER_CTX_add_encoder()
288 void *provctx = NULL; in OSSL_ENCODER_CTX_add_encoder()
290 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder()
298 if ((encoderctx = encoder->newctx(provctx)) == NULL in OSSL_ENCODER_CTX_add_encoder()
300 ossl_encoder_instance_new(encoder, encoderctx)) == NULL) in OSSL_ENCODER_CTX_add_encoder()
303 encoderctx = NULL; in OSSL_ENCODER_CTX_add_encoder()
311 if (encoderctx != NULL) in OSSL_ENCODER_CTX_add_encoder()
324 if (ctx == NULL || ctx->encoder_insts == NULL) in OSSL_ENCODER_CTX_get_num_encoders()
332 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct()
343 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_construct_data()
354 if (!ossl_assert(ctx != NULL)) { in OSSL_ENCODER_CTX_set_cleanup()
365 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder()
366 return NULL; in OSSL_ENCODER_INSTANCE_get_encoder()
373 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
374 return NULL; in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
381 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_type()
382 return NULL; in OSSL_ENCODER_INSTANCE_get_output_type()
389 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_structure()
390 return NULL; in OSSL_ENCODER_INSTANCE_get_output_structure()
396 OSSL_ENCODER_INSTANCE *current_encoder_inst = NULL; in encoder_process()
397 OSSL_ENCODER *current_encoder = NULL; in encoder_process()
398 OSSL_ENCODER_CTX *current_encoder_ctx = NULL; in encoder_process()
399 BIO *allocated_out = NULL; in encoder_process()
400 const void *original_data = NULL; in encoder_process()
402 const OSSL_PARAM *current_abstract = NULL; in encoder_process()
407 if (data->next_encoder_inst == NULL) { in encoder_process()
411 data->ctx->output_structure == NULL ? -1 : 0; in encoder_process()
416 OSSL_ENCODER *next_encoder = NULL; in encoder_process()
457 if (data->ctx->output_type != NULL in encoder_process()
485 if (data->ctx->output_structure != NULL in encoder_process()
486 && current_output_structure != NULL) { in encoder_process()
578 if (original_data != NULL) in encoder_process()
584 if (!ossl_assert(data->running_output != NULL)) { in encoder_process()
603 if (prev_output_structure != NULL) in encoder_process()
621 OSSL_CORE_BIO *cbio = NULL; in encoder_process()
622 BIO *current_out = NULL; in encoder_process()
631 == NULL) in encoder_process()
635 ok = (cbio = ossl_core_bio_new_from_bio(current_out)) != NULL; in encoder_process()
658 data->running_output = NULL; in encoder_process()
664 if (allocated_out != NULL) { in encoder_process()
674 if (original_data != NULL) in encoder_process()