diff options
author | Richard Levitte <levitte@openssl.org> | 2021-09-30 09:32:57 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-10-27 12:46:15 +0200 |
commit | 203ef4d7bfa65813dfa6fd49fb84c787e22b8c0c (patch) | |
tree | 8c20c8aa8f60b01c12efbde0ab05d768f7ef4985 /doc | |
parent | c4105ed91ffc020455847ef97293eab262deddd7 (diff) |
CORE: add a provider argument to ossl_method_construct()
This makes it possible to limit the search of methods to that
particular provider. This uses already available possibilities in
ossl_algorithm_do_all().
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16725)
(cherry picked from commit cfce50f791511c8fee7dec90c57f02d9410d039f)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/internal/man3/ossl_method_construct.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/internal/man3/ossl_method_construct.pod b/doc/internal/man3/ossl_method_construct.pod index 46a17ba7b6..f30e5609dc 100644 --- a/doc/internal/man3/ossl_method_construct.pod +++ b/doc/internal/man3/ossl_method_construct.pod @@ -27,7 +27,7 @@ OSSL_METHOD_CONSTRUCT_METHOD, ossl_method_construct typedef struct ossl_method_construct_method OSSL_METHOD_CONSTRUCT_METHOD; void *ossl_method_construct(OSSL_LIB_CTX *ctx, int operation_id, - int force_cache, + OSSL_PROVIDER *prov, int force_cache, OSSL_METHOD_CONSTRUCT_METHOD *mcm, void *mcm_data); @@ -57,6 +57,9 @@ providers for a dispatch table given an I<operation_id>, and then calling the appropriate functions given by the subsystem specific method creator through I<mcm> and the data in I<mcm_data> (which is passed by ossl_method_construct()). +If I<prov> is not NULL, only that provider is considered, which is +useful in the case a method must be found in that particular +provider. This function assumes that the subsystem method creator implements reference counting and acts accordingly (i.e. it will call the |