Lines Matching refs:methdata
97 struct encoder_data_st *methdata = data; in get_tmp_encoder_store() local
99 if (methdata->tmp_store == NULL) in get_tmp_encoder_store()
100 methdata->tmp_store = ossl_method_store_new(methdata->libctx); in get_tmp_encoder_store()
101 return methdata->tmp_store; in get_tmp_encoder_store()
118 struct encoder_data_st *methdata = data; in reserve_encoder_store() local
121 && (store = get_encoder_store(methdata->libctx)) == NULL) in reserve_encoder_store()
129 struct encoder_data_st *methdata = data; in unreserve_encoder_store() local
132 && (store = get_encoder_store(methdata->libctx)) == NULL) in unreserve_encoder_store()
142 struct encoder_data_st *methdata = data; in get_encoder_from_store() local
151 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_encoder_from_store()
152 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in get_encoder_from_store()
153 const char *names = methdata->names; in get_encoder_from_store()
159 id = ossl_namemap_name2num_n(namemap, methdata->names, l); in get_encoder_from_store()
166 && (store = get_encoder_store(methdata->libctx)) == NULL) in get_encoder_from_store()
169 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method)) in get_encoder_from_store()
179 struct encoder_data_st *methdata = data; in put_encoder_in_store() local
196 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_encoder_in_store()
200 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store()
322 struct encoder_data_st *methdata = data; in construct_encoder() local
338 methdata->flag_construct_error_occurred = 1; in construct_encoder()
361 inner_ossl_encoder_fetch(struct encoder_data_st *methdata, in inner_ossl_encoder_fetch() argument
364 OSSL_METHOD_STORE *store = get_encoder_store(methdata->libctx); in inner_ossl_encoder_fetch()
365 OSSL_NAMEMAP *namemap = ossl_namemap_stored(methdata->libctx); in inner_ossl_encoder_fetch()
396 methdata->id = id; in inner_ossl_encoder_fetch()
397 methdata->names = name; in inner_ossl_encoder_fetch()
398 methdata->propquery = propq; in inner_ossl_encoder_fetch()
399 methdata->flag_construct_error_occurred = 0; in inner_ossl_encoder_fetch()
400 if ((method = ossl_method_construct(methdata->libctx, OSSL_OP_ENCODER, in inner_ossl_encoder_fetch()
402 &mcm, methdata)) != NULL) { in inner_ossl_encoder_fetch()
419 unsupported = !methdata->flag_construct_error_occurred; in inner_ossl_encoder_fetch()
429 ossl_lib_ctx_get_descriptor(methdata->libctx), in inner_ossl_encoder_fetch()
440 struct encoder_data_st methdata; in OSSL_ENCODER_fetch() local
443 methdata.libctx = libctx; in OSSL_ENCODER_fetch()
444 methdata.tmp_store = NULL; in OSSL_ENCODER_fetch()
445 method = inner_ossl_encoder_fetch(&methdata, name, properties); in OSSL_ENCODER_fetch()
446 dealloc_tmp_encoder_store(methdata.tmp_store); in OSSL_ENCODER_fetch()
552 struct encoder_data_st methdata; in OSSL_ENCODER_do_all_provided() local
555 methdata.libctx = libctx; in OSSL_ENCODER_do_all_provided()
556 methdata.tmp_store = NULL; in OSSL_ENCODER_do_all_provided()
557 (void)inner_ossl_encoder_fetch(&methdata, NULL, NULL /* properties */); in OSSL_ENCODER_do_all_provided()
561 if (methdata.tmp_store != NULL) in OSSL_ENCODER_do_all_provided()
562 ossl_method_store_do_all(methdata.tmp_store, &do_one, &data); in OSSL_ENCODER_do_all_provided()
564 dealloc_tmp_encoder_store(methdata.tmp_store); in OSSL_ENCODER_do_all_provided()