summaryrefslogtreecommitdiff
path: root/src/lib/libtls/man
diff options
context:
space:
mode:
authorjsing <>2018-03-19 16:34:47 +0000
committerjsing <>2018-03-19 16:34:47 +0000
commitc7be23675a7e4a025b9e5a5375aaed6139e653db (patch)
treea3c296b727ec4d2bb5671d0189458d547b6c3865 /src/lib/libtls/man
parentd3d84b6f3e79d4f8b89ef8f2e9d67ecaf8294433 (diff)
downloadopenbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.tar.gz
openbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.tar.bz2
openbsd-c7be23675a7e4a025b9e5a5375aaed6139e653db.zip
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@
Diffstat (limited to 'src/lib/libtls/man')
-rw-r--r--src/lib/libtls/man/tls_init.37
1 files changed, 4 insertions, 3 deletions
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 @@
1.\" $OpenBSD: tls_init.3,v 1.10 2018/03/08 16:12:00 beck Exp $ 1.\" $OpenBSD: tls_init.3,v 1.11 2018/03/19 16:34:47 jsing Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" Copyright (c) 2016 Joel Sing <jsing@openbsd.org> 4.\" Copyright (c) 2016 Joel Sing <jsing@openbsd.org>
@@ -16,7 +16,7 @@
16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: March 8 2018 $ 19.Dd $Mdocdate: March 19 2018 $
20.Dt TLS_INIT 3 20.Dt TLS_INIT 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -45,7 +45,8 @@ Both clients and servers are supported.
45The 45The
46.Fn tls_init 46.Fn tls_init
47function initializes global data structures. 47function initializes global data structures.
48It should be called once before any other functions. 48It may be called once before any other functions, however this is no
49longer necessary since it will be handled internally on demand.
49It may be called more than once, and may be called concurrently. 50It may be called more than once, and may be called concurrently.
50.Pp 51.Pp
51Before a connection is created, a configuration must be created. 52Before a connection is created, a configuration must be created.