diff options
author | Richard Levitte <levitte@openssl.org> | 2019-11-19 09:55:56 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-11-29 20:42:12 +0100 |
commit | 36fa4d8a0df9dc168047fadd0365966c7116b31d (patch) | |
tree | bec50f40d1fe2d018d76990149d065a4d73e9902 /crypto/core_fetch.c | |
parent | 3d83c7353630450a4ce4fffc9c75693565e094c2 (diff) |
CORE: pass the full algorithm definition to the method constructor
So far, the API level method constructors that are called by
ossl_method_construct_this() were passed the algorithm name string and
the dispatch table and had no access to anything else.
This change gives them access to the full OSSL_ALGORITHM item, thereby
giving them access to the property definition.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10394)
Diffstat (limited to 'crypto/core_fetch.c')
-rw-r--r-- | crypto/core_fetch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/core_fetch.c b/crypto/core_fetch.c index ed50bb87d5..7f815a50ac 100644 --- a/crypto/core_fetch.c +++ b/crypto/core_fetch.c @@ -31,9 +31,8 @@ static void ossl_method_construct_this(OSSL_PROVIDER *provider, struct construct_data_st *data = cbdata; void *method = NULL; - if ((method = data->mcm->construct(algo->algorithm_names, - algo->implementation, provider, - data->mcm_data)) == NULL) + if ((method = data->mcm->construct(algo, provider, data->mcm_data)) + == NULL) return; /* |