From 36fa4d8a0df9dc168047fadd0365966c7116b31d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 19 Nov 2019 09:55:56 +0100 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/10394) --- include/internal/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/internal') 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; -- cgit v1.2.3