Lines Matching defs:method
26 /* Simple method structure constructor and destructor */
68 /* Permanent decoder method store, constructor and destructor */
104 /* Temporary decoder method store, constructor and destructor */
154 void *method = NULL;
158 * get_decoder_from_store() is only called to try and get the method
180 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method))
182 return method;
185 static int put_decoder_in_store(void *store, void *method,
196 * put_decoder_in_store() is only called with an OSSL_DECODER method that
214 return ossl_method_store_add(store, prov, id, propdef, method,
219 /* Create and populate a decoder method */
287 * Try to check that the method is sensible.
328 void *method = NULL;
331 method = ossl_decoder_from_algorithm(id, algodef, prov);
338 if (method == NULL)
341 return method;
345 static void destruct_decoder(void *method, void *data)
347 OSSL_DECODER_free(method);
350 static int up_ref_decoder(void *method)
352 return OSSL_DECODER_up_ref(method);
355 static void free_decoder(void *method)
357 OSSL_DECODER_free(method);
368 void *method = NULL;
396 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) {
412 if ((method = ossl_method_construct(methdata->libctx, OSSL_OP_DECODER,
416 * If construction did create a method for us, we know that
424 ossl_method_store_cache_set(store, prov, id, propq, method,
435 if ((id != 0 || name != NULL) && method == NULL) {
447 return method;
454 void *method;
458 method = inner_ossl_decoder_fetch(&methdata, 0, name, properties);
460 return method;
467 void *method;
471 method = inner_ossl_decoder_fetch(&methdata, id, NULL, properties);
473 return method;
496 * Library of basic method functions
566 static void do_one(ossl_unused int id, void *method, void *arg)
570 data->user_fn(method, data->user_arg);