From c7be23675a7e4a025b9e5a5375aaed6139e653db Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 19 Mar 2018 16:34:47 +0000 Subject: Automatically handle library initialisation for libtls. Now that we have tls_init() under pthread_once(), automatically initialise libtls from the entry point functions (tls_config(), tls_client() and tls_server()) - this makes an explicit tls_init() call no longer a requirement. ok bcook@ beck@ inoguchi@ --- src/lib/libtls/man/tls_init.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib/libtls/man') diff --git a/src/lib/libtls/man/tls_init.3 b/src/lib/libtls/man/tls_init.3 index dfafa612c1..f5f63fa326 100644 --- a/src/lib/libtls/man/tls_init.3 +++ b/src/lib/libtls/man/tls_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tls_init.3,v 1.10 2018/03/08 16:12:00 beck Exp $ +.\" $OpenBSD: tls_init.3,v 1.11 2018/03/19 16:34:47 jsing Exp $ .\" .\" Copyright (c) 2014 Ted Unangst .\" Copyright (c) 2016 Joel Sing @@ -16,7 +16,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 8 2018 $ +.Dd $Mdocdate: March 19 2018 $ .Dt TLS_INIT 3 .Os .Sh NAME @@ -45,7 +45,8 @@ Both clients and servers are supported. The .Fn tls_init function initializes global data structures. -It should be called once before any other functions. +It may be called once before any other functions, however this is no +longer necessary since it will be handled internally on demand. It may be called more than once, and may be called concurrently. .Pp Before a connection is created, a configuration must be created. -- cgit v1.2.3-55-g6feb