diff options
author | Richard Levitte <levitte@openssl.org> | 2022-04-20 18:34:09 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-05-05 15:05:54 +0200 |
commit | 10937d5867039afbf869c8514245ed7599b61307 (patch) | |
tree | 127a19971fd40001f570f165e7c53e241af3c8ad /crypto/evp | |
parent | 20b6d85ab2b9cfa4cd29d2422d69c3e3f4db0a41 (diff) |
Refactor method construction pre- and post-condition
The existing pre- and post-condition functions are supposed to check if
methods have already been created and stored, using provider operation
bits. This is supposed to only be done for "permanent" method stores.
However, the way the pre-condition was called, it could not know if the
set of implementations to be stored is likely to end up in a "permanent"
or a temporary store. It needs access to the |no_store| flag returned
by the provider's operation query function, because that call was done
after the pre-condition was called.
This requires a bit of refactoring, primarly of |algorithm_do_this()|,
but also of |ossl_method_construct_precondition()|.
Fixes #18150
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18151)
Diffstat (limited to 'crypto/evp')
0 files changed, 0 insertions, 0 deletions