diff options
author | Richard Levitte <levitte@openssl.org> | 2019-11-19 11:55:56 +0300 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-11-29 22:42:12 +0300 |
commit | 36fa4d8a0df9dc168047fadd0365966c7116b31d (patch) | |
tree | bec50f40d1fe2d018d76990149d065a4d73e9902 /include/internal | |
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 'include/internal')
-rw-r--r-- | include/internal/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/core.h b/include/internal/core.h index d2229e173b..ca04333486 100644 --- a/include/internal/core.h +++ b/include/internal/core.h @@ -38,8 +38,8 @@ typedef struct ossl_method_construct_method_st { const OSSL_PROVIDER *prov, int operation_id, const char *name, const char *propdef, void *data); /* Construct a new method */ - void *(*construct)(const char *name, const OSSL_DISPATCH *fns, - OSSL_PROVIDER *prov, void *data); + void *(*construct)(const OSSL_ALGORITHM *algodef, OSSL_PROVIDER *prov, + void *data); /* Destruct a method */ void (*destruct)(void *method, void *data); } OSSL_METHOD_CONSTRUCT_METHOD; |