struct construct_data_st *data = cbdata;
void *method = NULL;
- if ((method = data->mcm->construct(algo->algorithm_name,
- algo->implementation, provider,
- data->mcm_data)) == NULL)
+ if ((method = data->mcm->construct(algo, provider, data->mcm_data))
+ == NULL)
return;
/*
* If we haven't been told not to store,
* add to the global store
*/
- data->mcm->put(data->libctx, NULL, method, data->operation_id,
- algo->algorithm_name,
+ data->mcm->put(data->libctx, NULL, method, provider,
+ data->operation_id, algo->algorithm_names,
algo->property_definition, data->mcm_data);
}
- data->mcm->put(data->libctx, data->store, method, data->operation_id,
- algo->algorithm_name, algo->property_definition,
- data->mcm_data);
+ data->mcm->put(data->libctx, data->store, method, provider,
+ data->operation_id, algo->algorithm_names,
+ algo->property_definition, data->mcm_data);
/* refcnt-- because we're dropping the reference */
data->mcm->destruct(method, data->mcm_data);
}
void *ossl_method_construct(OPENSSL_CTX *libctx, int operation_id,
- const char *name, const char *propquery,
int force_store,
OSSL_METHOD_CONSTRUCT_METHOD *mcm, void *mcm_data)
{
void *method = NULL;
- if ((method =
- mcm->get(libctx, NULL, operation_id, name, propquery, mcm_data))
- == NULL) {
+ if ((method = mcm->get(libctx, NULL, mcm_data)) == NULL) {
struct construct_data_st cbdata;
/*
ossl_algorithm_do_all(libctx, operation_id, NULL,
ossl_method_construct_this, &cbdata);
- method = mcm->get(libctx, cbdata.store, operation_id, name,
- propquery, mcm_data);
+ method = mcm->get(libctx, cbdata.store, mcm_data);
mcm->dealloc_tmp_store(cbdata.store);
}