Lines Matching defs:ctx
22 int OSSL_DECODER_CTX_set_passphrase(OSSL_DECODER_CTX *ctx,
26 return ossl_pw_set_passphrase(&ctx->pwdata, kstr, klen);
29 int OSSL_DECODER_CTX_set_passphrase_ui(OSSL_DECODER_CTX *ctx,
33 return ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data);
36 int OSSL_DECODER_CTX_set_pem_password_cb(OSSL_DECODER_CTX *ctx,
39 return ossl_pw_set_pem_password_cb(&ctx->pwdata, cb, cbarg);
42 int OSSL_DECODER_CTX_set_passphrase_cb(OSSL_DECODER_CTX *ctx,
46 return ossl_pw_set_ossl_passphrase_cb(&ctx->pwdata, cb, cbarg);
180 * We successfully looked through, |*ctx->object| determines if we
219 OSSL_DECODER_CTX *ctx;
247 && !decoder->does_selection(provctx, data->ctx->selection))
252 "(ctx %p) Checking out decoder %p:\n"
254 (void *)data->ctx, (void *)decoder,
279 "(ctx %p) Checking out decoder %p:\n"
281 (void *)data->ctx, (void *)decoder,
286 if (!ossl_decoder_ctx_add_decoder_inst(data->ctx, di)) {
302 int ossl_decoder_ctx_setup_for_pkey(OSSL_DECODER_CTX *ctx,
309 const char *input_type = ctx->start_input_type;
310 const char *input_structure = ctx->input_structure;
322 "(ctx %p) Looking for decoders producing %s%s%s%s%s%s\n",
323 (void *)ctx,
343 process_data->selection = ctx->selection;
391 collect_decoder_data.ctx = ctx;
402 "(ctx %p) Got %d decoders producing keys\n",
403 (void *)ctx, collect_decoder_data.total);
407 if (OSSL_DECODER_CTX_get_num_decoders(ctx) != 0) {
408 if (!OSSL_DECODER_CTX_set_construct(ctx, decoder_construct_pkey)
409 || !OSSL_DECODER_CTX_set_construct_data(ctx, process_data)
410 || !OSSL_DECODER_CTX_set_cleanup(ctx,
432 OSSL_DECODER_CTX *ctx = NULL;
434 if ((ctx = OSSL_DECODER_CTX_new()) == NULL) {
441 "(ctx %p) Looking for %s decoders with selection %d\n",
442 (void *)ctx, keytype, selection);
447 if (OSSL_DECODER_CTX_set_input_type(ctx, input_type)
448 && OSSL_DECODER_CTX_set_input_structure(ctx, input_structure)
449 && OSSL_DECODER_CTX_set_selection(ctx, selection)
450 && ossl_decoder_ctx_setup_for_pkey(ctx, pkey, keytype,
452 && OSSL_DECODER_CTX_add_extra(ctx, libctx, propquery)) {
454 BIO_printf(trc_out, "(ctx %p) Got %d decoders\n",
455 (void *)ctx, OSSL_DECODER_CTX_get_num_decoders(ctx));
457 return ctx;
460 OSSL_DECODER_CTX_free(ctx);