diff options
author | Matt Caswell <matt@openssl.org> | 2021-11-09 13:48:31 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-11-12 17:16:14 +0000 |
commit | cad22202a32a94059e351d9819e6c9ed5c66605a (patch) | |
tree | 2e9ace55274f11f3c7b51e4bb04d325201495e5b /doc/internal | |
parent | e39bd6215123f375ddcfe92fa2b2550294da0b73 (diff) |
Stop receiving child callbacks in a child libctx when appropriate
We should stop receiving child callbacks if we're about to free up
the child libctx. Otherwise we can get callbacks when the libctx is half
freed up.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16980)
Diffstat (limited to 'doc/internal')
-rw-r--r-- | doc/internal/man3/ossl_provider_new.pod | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/internal/man3/ossl_provider_new.pod b/doc/internal/man3/ossl_provider_new.pod index 7f6934a59e..1dba1860f7 100644 --- a/doc/internal/man3/ossl_provider_new.pod +++ b/doc/internal/man3/ossl_provider_new.pod @@ -8,7 +8,7 @@ ossl_provider_set_module_path, ossl_provider_add_parameter, ossl_provider_set_child, ossl_provider_get_parent, ossl_provider_up_ref_parent, ossl_provider_free_parent, ossl_provider_default_props_update, ossl_provider_get0_dispatch, -ossl_provider_init_as_child, +ossl_provider_init_as_child, ossl_provider_deinit_child, ossl_provider_activate, ossl_provider_deactivate, ossl_provider_add_to_store, ossl_provider_ctx, ossl_provider_doall_activated, @@ -98,7 +98,7 @@ ossl_provider_get_capabilities int ossl_provider_init_as_child(OSSL_LIB_CTX *ctx, const OSSL_CORE_HANDLE *handle, const OSSL_DISPATCH *in); - + void ossl_provider_deinit_child(OSSL_LIB_CTX *ctx); =head1 DESCRIPTION @@ -302,6 +302,10 @@ the necessary upcalls for managing child providers. The I<handle> and I<in> parameters are the B<OSSL_CORE_HANDLE> and B<OSSL_DISPATCH> pointers that were passed to the provider's B<OSSL_provider_init> function. +ossl_provider_deinit_child() deregisters callbacks from the parent library +context about provider creation or removal events for the child library context +I<ctx>. Must only be called if I<ctx> is a child library context. + =head1 NOTES Locating a provider module happens as follows: |