Lines Matching refs:encoder_inst

186     OSSL_ENCODER_INSTANCE *encoder_inst = NULL;  in ossl_encoder_instance_new()  local
197 if ((encoder_inst = OPENSSL_zalloc(sizeof(*encoder_inst))) == NULL) { in ossl_encoder_instance_new()
219 encoder_inst->output_type = ossl_property_get_string_value(libctx, prop); in ossl_encoder_instance_new()
220 if (encoder_inst->output_type == NULL) { in ossl_encoder_instance_new()
232 encoder_inst->output_structure in ossl_encoder_instance_new()
235 encoder_inst->encoder = encoder; in ossl_encoder_instance_new()
236 encoder_inst->encoderctx = encoderctx; in ossl_encoder_instance_new()
237 return encoder_inst; in ossl_encoder_instance_new()
239 ossl_encoder_instance_free(encoder_inst); in ossl_encoder_instance_new()
243 void ossl_encoder_instance_free(OSSL_ENCODER_INSTANCE *encoder_inst) in ossl_encoder_instance_free() argument
245 if (encoder_inst != NULL) { in ossl_encoder_instance_free()
246 if (encoder_inst->encoder != NULL) in ossl_encoder_instance_free()
247 encoder_inst->encoder->freectx(encoder_inst->encoderctx); in ossl_encoder_instance_free()
248 encoder_inst->encoderctx = NULL; in ossl_encoder_instance_free()
249 OSSL_ENCODER_free(encoder_inst->encoder); in ossl_encoder_instance_free()
250 encoder_inst->encoder = NULL; in ossl_encoder_instance_free()
251 OPENSSL_free(encoder_inst); in ossl_encoder_instance_free()
283 OSSL_ENCODER_INSTANCE *encoder_inst = NULL; in OSSL_ENCODER_CTX_add_encoder() local
297 || (encoder_inst = in OSSL_ENCODER_CTX_add_encoder()
303 if (!ossl_encoder_ctx_add_encoder_inst(ctx, encoder_inst)) in OSSL_ENCODER_CTX_add_encoder()
308 ossl_encoder_instance_free(encoder_inst); in OSSL_ENCODER_CTX_add_encoder()
361 OSSL_ENCODER_INSTANCE_get_encoder(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder() argument
363 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder()
365 return encoder_inst->encoder; in OSSL_ENCODER_INSTANCE_get_encoder()
369 OSSL_ENCODER_INSTANCE_get_encoder_ctx(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder_ctx() argument
371 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
373 return encoder_inst->encoderctx; in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
377 OSSL_ENCODER_INSTANCE_get_output_type(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_type() argument
379 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_type()
381 return encoder_inst->output_type; in OSSL_ENCODER_INSTANCE_get_output_type()
385 OSSL_ENCODER_INSTANCE_get_output_structure(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_structure() argument
387 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_structure()
389 return encoder_inst->output_structure; in OSSL_ENCODER_INSTANCE_get_output_structure()