Lines Matching refs:ctx
74 static void *encoder_store_new(OSSL_LIB_CTX *ctx)
76 return ossl_method_store_new(ctx);
653 OSSL_ENCODER_CTX *ctx;
655 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL)
658 return ctx;
661 int OSSL_ENCODER_CTX_set_params(OSSL_ENCODER_CTX *ctx,
668 if (!ossl_assert(ctx != NULL)) {
673 if (ctx->encoder_insts == NULL)
676 l = OSSL_ENCODER_CTX_get_num_encoders(ctx);
679 sk_OSSL_ENCODER_INSTANCE_value(ctx->encoder_insts, i);
691 void OSSL_ENCODER_CTX_free(OSSL_ENCODER_CTX *ctx)
693 if (ctx != NULL) {
694 sk_OSSL_ENCODER_INSTANCE_pop_free(ctx->encoder_insts,
696 OPENSSL_free(ctx->construct_data);
697 ossl_pw_clear_passphrase_data(&ctx->pwdata);
698 OPENSSL_free(ctx);