Skip to content

Commit

Permalink
set module path from template
Browse files Browse the repository at this point in the history
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 #24025)

(cherry picked from commit bc95959)
  • Loading branch information
nhorman authored and t8m committed Apr 18, 2024
1 parent 942fdf9 commit bad44ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/provider_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bad44ba

Please sign in to comment.