set module path from template
Modules that aren't activated at conf load time don't seem to set the
module path from the template leading to load failures. Make sure to
set that
Fixes #24020
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24025)
(cherry picked from commit bc9595963a
)
This commit is contained in:
parent
942fdf9451
commit
bad44bae8b
1 changed files with 4 additions and 0 deletions
|
@ -573,6 +573,10 @@ OSSL_PROVIDER *ossl_provider_new(OSSL_LIB_CTX *libctx, const char *name,
|
|||
|
||||
/* provider_new() generates an error, so no need here */
|
||||
prov = provider_new(name, template.init, template.parameters);
|
||||
if (!ossl_provider_set_module_path(prov, template.path)) {
|
||||
ossl_provider_free(prov);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (params != NULL) /* We copied the parameters, let's free them */
|
||||
sk_INFOPAIR_pop_free(template.parameters, infopair_free);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue