Skip to content

Commit

Permalink
Take into account no_store when pushing algorithm
Browse files Browse the repository at this point in the history
When we put algorithm to the store, we have a fallback to the
OSSL_LIB_CTX level store when store is NULL.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#26197)

(cherry picked from commit b3bb214)
  • Loading branch information
beldmit committed Dec 20, 2024
1 parent 33a9e18 commit 347eb19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/core_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ static void ossl_method_construct_this(OSSL_PROVIDER *provider,
* It is *expected* that the put function increments the refcnt
* of the passed method.
*/
data->mcm->put(data->store, method, provider, algo->algorithm_names,
data->mcm->put(no_store ? data->store : NULL,
method, provider, algo->algorithm_names,
algo->property_definition, data->mcm_data);

/* refcnt-- because we're dropping the reference */
Expand Down

0 comments on commit 347eb19

Please sign in to comment.