Lines Matching refs:id
80 int id; /* For get_decoder_from_store() */ member
144 int id; in get_decoder_from_store() local
151 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_decoder_from_store()
159 id = ossl_namemap_name2num_n(namemap, names, l); in get_decoder_from_store()
162 if (id == 0) in get_decoder_from_store()
169 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method)) in get_decoder_from_store()
181 int id; in put_decoder_in_store() local
197 || (id = ossl_namemap_name2num_n(namemap, names, l)) == 0) in put_decoder_in_store()
203 return ossl_method_store_add(store, prov, id, propdef, method, in put_decoder_in_store()
209 void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef, in ossl_decoder_from_algorithm() argument
218 decoder->base.id = id; in ossl_decoder_from_algorithm()
316 int id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR); in construct_decoder() local
319 if (id != 0) in construct_decoder()
320 method = ossl_decoder_from_algorithm(id, algodef, prov); in construct_decoder()
358 int unsupported, id; in inner_ossl_decoder_fetch() local
365 id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0; in inner_ossl_decoder_fetch()
371 unsupported = id == 0; in inner_ossl_decoder_fetch()
373 if (id == 0 in inner_ossl_decoder_fetch()
374 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) { in inner_ossl_decoder_fetch()
386 methdata->id = id; in inner_ossl_decoder_fetch()
399 if (id == 0 && name != NULL) in inner_ossl_decoder_fetch()
400 id = ossl_namemap_name2num(namemap, name); in inner_ossl_decoder_fetch()
401 if (id != 0) in inner_ossl_decoder_fetch()
402 ossl_method_store_cache_set(store, prov, id, propq, method, in inner_ossl_decoder_fetch()
413 if ((id != 0 || name != NULL) && method == NULL) { in inner_ossl_decoder_fetch()
417 name = ossl_namemap_num2name(namemap, id, 0); in inner_ossl_decoder_fetch()
421 name == NULL ? "<null>" : name, id, in inner_ossl_decoder_fetch()
502 return decoder->base.id; in ossl_decoder_get_number()
521 return ossl_namemap_name2num(namemap, name) == decoder->base.id; in OSSL_DECODER_is_a()
536 int id = *id_cache; in ossl_decoder_fast_is_a() local
538 if (id <= 0) in ossl_decoder_fast_is_a()
539 *id_cache = id = resolve_name(decoder, name); in ossl_decoder_fast_is_a()
541 return id > 0 && ossl_decoder_get_number(decoder) == id; in ossl_decoder_fast_is_a()
549 static void do_one(ossl_unused int id, void *method, void *arg) in do_one() argument
587 return ossl_namemap_doall_names(namemap, decoder->base.id, fn, data); in OSSL_DECODER_names_do_all()