Lines Matching refs:ctx
34 typedef int check_key_fn(void *, struct pvk2key_ctx_st *ctx);
35 typedef void adjust_key_fn(void *, struct pvk2key_ctx_st *ctx);
66 struct pvk2key_ctx_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
68 if (ctx != NULL) {
69 ctx->provctx = provctx;
70 ctx->desc = desc;
72 return ctx;
77 struct pvk2key_ctx_st *ctx = vctx;
79 OPENSSL_free(ctx);
86 struct pvk2key_ctx_st *ctx = vctx;
87 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin);
94 ctx->selection = selection;
98 && ctx->desc->read_private_key != NULL) {
106 key = ctx->desc->read_private_key(in, ossl_pw_pvk_password, &pwdata,
107 PROV_LIBCTX_OF(ctx->provctx), NULL);
129 if (key != NULL && ctx->desc->adjust_key != NULL)
130 ctx->desc->adjust_key(key, ctx);
155 (char *)ctx->desc->name, 0);
167 ctx->desc->free_key(key);
176 struct pvk2key_ctx_st *ctx = vctx;
178 ossl_prov_get_keymgmt_export(ctx->desc->fns);
185 return export(keydata, ctx->selection, export_cb, export_cbarg);
200 static void rsa_adjust(void *key, struct pvk2key_ctx_st *ctx)
202 ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx));