Lines Matching defs:method
26 /* Simple method structure constructor and destructor */
68 /* Permanent encoder method store, constructor and destructor */
104 /* Temporary encoder method store, constructor and destructor */
154 void *method = NULL;
158 * get_encoder_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_encoder_in_store(void *store, void *method,
196 * put_encoder_in_store() is only called with an OSSL_ENCODER method that
214 return ossl_method_store_add(store, prov, id, propdef, method,
219 /* Create and populate a encoder method */
295 * Try to check that the method is sensible.
338 void *method = NULL;
341 method = encoder_from_algorithm(id, algodef, prov);
348 if (method == NULL)
351 return method;
355 static void destruct_encoder(void *method, void *data)
357 OSSL_ENCODER_free(method);
360 static int up_ref_encoder(void *method)
362 return OSSL_ENCODER_up_ref(method);
365 static void free_encoder(void *method)
367 OSSL_ENCODER_free(method);
378 void *method = NULL;
406 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) {
422 if ((method = ossl_method_construct(methdata->libctx, OSSL_OP_ENCODER,
426 * If construction did create a method for us, we know that
433 ossl_method_store_cache_set(store, prov, id, propq, method,
444 if ((id != 0 || name != NULL) && method == NULL) {
456 return method;
463 void *method;
467 method = inner_ossl_encoder_fetch(&methdata, 0, name, properties);
469 return method;
476 void *method;
480 method = inner_ossl_encoder_fetch(&methdata, id, NULL, properties);
482 return method;
505 * Library of basic method functions
575 static void do_one(ossl_unused int id, void *method, void *arg)
579 data->user_fn(method, data->user_arg);