Lines Matching refs:id
90 int id; /* For get_decoder_from_store() */ member
133 int id; in get_decoder_from_store() local
140 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_decoder_from_store()
148 id = ossl_namemap_name2num_n(namemap, names, l); in get_decoder_from_store()
151 if (id == 0) in get_decoder_from_store()
158 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method)) in get_decoder_from_store()
170 int id; in put_decoder_in_store() local
186 || (id = ossl_namemap_name2num_n(namemap, names, l)) == 0) in put_decoder_in_store()
192 return ossl_method_store_add(store, prov, id, propdef, method, in put_decoder_in_store()
198 void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef, in ossl_decoder_from_algorithm() argument
207 decoder->base.id = id; in ossl_decoder_from_algorithm()
302 int id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR); in construct_decoder() local
305 if (id != 0) in construct_decoder()
306 method = ossl_decoder_from_algorithm(id, algodef, prov); in construct_decoder()
337 inner_ossl_decoder_fetch(struct decoder_data_st *methdata, int id, in inner_ossl_decoder_fetch() argument
354 if (!ossl_assert(id == 0 || name == NULL)) { in inner_ossl_decoder_fetch()
359 if (id == 0 && name != NULL) in inner_ossl_decoder_fetch()
360 id = ossl_namemap_name2num(namemap, name); in inner_ossl_decoder_fetch()
366 if (id == 0) in inner_ossl_decoder_fetch()
369 if (id == 0 in inner_ossl_decoder_fetch()
370 || !ossl_method_store_cache_get(store, NULL, id, properties, &method)) { in inner_ossl_decoder_fetch()
379 methdata->id = id; in inner_ossl_decoder_fetch()
392 if (id == 0 && name != NULL) in inner_ossl_decoder_fetch()
393 id = ossl_namemap_name2num(namemap, name); in inner_ossl_decoder_fetch()
394 if (id != 0) in inner_ossl_decoder_fetch()
395 ossl_method_store_cache_set(store, NULL, id, properties, method, in inner_ossl_decoder_fetch()
406 if ((id != 0 || name != NULL) && method == NULL) { in inner_ossl_decoder_fetch()
410 name = ossl_namemap_num2name(namemap, id, 0); in inner_ossl_decoder_fetch()
414 name = NULL ? "<null>" : name, id, in inner_ossl_decoder_fetch()
434 OSSL_DECODER *ossl_decoder_fetch_by_number(OSSL_LIB_CTX *libctx, int id, in ossl_decoder_fetch_by_number() argument
442 method = inner_ossl_decoder_fetch(&methdata, id, NULL, properties); in ossl_decoder_fetch_by_number()
489 return decoder->base.id; in ossl_decoder_get_number()
508 return ossl_namemap_name2num(namemap, name) == decoder->base.id; in OSSL_DECODER_is_a()
518 static void do_one(ossl_unused int id, void *method, void *arg) in do_one() argument
556 return ossl_namemap_doall_names(namemap, decoder->base.id, fn, data); in OSSL_DECODER_names_do_all()