From 104de82a2457ba4f22f7c242f2b421f13bb3c5f4 Mon Sep 17 00:00:00 2001 From: tedu <> Date: Sat, 21 Feb 2015 21:41:00 +0000 Subject: explain how tls_accept_socket works. --- src/lib/libtls/tls_init.3 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3 index 71aab47c41..52220fa449 100644 --- a/src/lib/libtls/tls_init.3 +++ b/src/lib/libtls/tls_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tls_init.3,v 1.16 2015/02/21 19:58:39 tedu Exp $ +.\" $OpenBSD: tls_init.3,v 1.17 2015/02/21 21:41:00 tedu Exp $ .\" .\" Copyright (c) 2014 Ted Unangst .\" @@ -358,7 +358,14 @@ connects a client context to a pair of existing file descriptors. connects a client context to an already established socket connection. .It .Fn tls_accept_socket -accepts a client context on an already established socket connection. +creates a new context suitable for reading and writing on an already +established socket connection and returns it in +.Fa *cctx . +A configured server context should be passed in +.Fa ctx +and +.Fa *cctx +should be initialized to NULL. .It .Fn tls_read reads -- cgit v1.2.3-55-g6feb