From: Dr. David von Oheimb Date: Thu, 22 Dec 2022 10:47:41 +0000 (+0100) Subject: OSSL_trace_set_channel(): add important statement that it takes BIO ownership X-Git-Tag: openssl-3.2.0-alpha1~1405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfd5680e6be789fd554acf2ad34428816a644eec;p=thirdparty%2Fopenssl.git OSSL_trace_set_channel(): add important statement that it takes BIO ownership Reviewed-by: Tomas Mraz Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/19959) --- diff --git a/doc/man3/OSSL_trace_set_channel.pod b/doc/man3/OSSL_trace_set_channel.pod index 2d9ce98d423..5b1981c1c30 100644 --- a/doc/man3/OSSL_trace_set_channel.pod +++ b/doc/man3/OSSL_trace_set_channel.pod @@ -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 by attaching the B I 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