Lines Matching refs:id
70 int id; /* For get_encoder_from_store() */ member
134 int id; in get_encoder_from_store() local
141 if ((id = methdata->id) == 0 && methdata->names != NULL) { in get_encoder_from_store()
149 id = ossl_namemap_name2num_n(namemap, methdata->names, l); in get_encoder_from_store()
152 if (id == 0) in get_encoder_from_store()
159 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method)) in get_encoder_from_store()
171 int id; in put_encoder_in_store() local
187 || (id = ossl_namemap_name2num_n(namemap, names, l)) == 0) in put_encoder_in_store()
193 return ossl_method_store_add(store, prov, id, propdef, method, in put_encoder_in_store()
199 static void *encoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef, in encoder_from_algorithm() argument
208 encoder->base.id = id; in encoder_from_algorithm()
316 int id = ossl_namemap_add_names(namemap, 0, names, NAME_SEPARATOR); in construct_encoder() local
319 if (id != 0) in construct_encoder()
320 method = encoder_from_algorithm(id, algodef, prov); in construct_encoder()
358 int unsupported, id; in inner_ossl_encoder_fetch() local
365 id = name != NULL ? ossl_namemap_name2num(namemap, name) : 0; in inner_ossl_encoder_fetch()
371 unsupported = id == 0; in inner_ossl_encoder_fetch()
373 if (id == 0 in inner_ossl_encoder_fetch()
374 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) { in inner_ossl_encoder_fetch()
386 methdata->id = id; in inner_ossl_encoder_fetch()
399 if (id == 0) in inner_ossl_encoder_fetch()
400 id = ossl_namemap_name2num(namemap, name); in inner_ossl_encoder_fetch()
401 ossl_method_store_cache_set(store, prov, id, propq, method, in inner_ossl_encoder_fetch()
412 if ((id != 0 || name != NULL) && method == NULL) { in inner_ossl_encoder_fetch()
416 name = ossl_namemap_num2name(namemap, id, 0); in inner_ossl_encoder_fetch()
420 name == NULL ? "<null>" : name, id, in inner_ossl_encoder_fetch()
501 return encoder->base.id; in ossl_encoder_get_number()
520 return ossl_namemap_name2num(namemap, name) == encoder->base.id; in OSSL_ENCODER_is_a()
530 static void do_one(ossl_unused int id, void *method, void *arg) in do_one() argument
568 return ossl_namemap_doall_names(namemap, encoder->base.id, fn, data); in OSSL_ENCODER_names_do_all()