CORE: pass the full algorithm definition to the method constructor
[openssl.git] / crypto / core_fetch.c
index ed50bb87d53c6c1d247a6371a0466fd525781aa0..7f815a50acb06106dd582b183d3aecb591d08394 100644 (file)
@@ -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;
 
     /*