OSSL_trace_set_channel(): add important statement that it takes BIO ownership
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 22 Dec 2022 10:47:41 +0000 (11:47 +0100)
committerHugo Landau <hlandau@openssl.org>
Tue, 24 Jan 2023 12:31:57 +0000 (12:31 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19959)

doc/man3/OSSL_trace_set_channel.pod

index 2d9ce98d423e0f51009251af7e65f79f6226f27a..5b1981c1c3071c74ba70925dcc95c926396921cb 100644 (file)
@@ -47,6 +47,8 @@ can be used for producing free-text trace output.
 
 OSSL_trace_set_channel() is used to enable the given trace C<category>
 by attaching the B<BIO> I<bio> object as (simple) trace channel.
+On success the ownership of the BIO is transferred to the channel,
+so the caller must not free it directly.
 
 OSSL_trace_set_prefix() and OSSL_trace_set_suffix() can be used to add
 an extra line for each channel, to be output before and after group of