diff options
author | Matt Caswell <matt@openssl.org> | 2021-11-09 13:48:31 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-11-15 14:22:41 +0000 |
commit | fc205cedd7b9f12a70117c5f9167ba689ec35a28 (patch) | |
tree | ce470f8b94477f37e4258e631a34c269ca1ddf99 /doc | |
parent | 0d46c3f8e2453b407f8385545437e65c13a2fd8f (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: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17018)
Diffstat (limited to 'doc')
-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 6f1681e981..0cf51a163f 100644 --- a/doc/internal/man3/ossl_provider_new.pod +++ b/doc/internal/man3/ossl_provider_new.pod @@ -8,7 +8,7 @@ ossl_provider_set_fallback, 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, @@ -99,7 +99,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 @@ -308,6 +308,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: |