summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_init.3
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-02-21 21:41:01 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-02-21 21:41:01 +0000
commit7a0f209cad4fe5e0721717fbd68cb0b3934eb0de (patch)
tree7309797ea23deeb573a1b7056a6401f3e50bc984 /lib/libtls/tls_init.3
parentb134c8de00d1946aed2178a38089184bb1ad85b1 (diff)
explain how tls_accept_socket works.
Diffstat (limited to 'lib/libtls/tls_init.3')
-rw-r--r--lib/libtls/tls_init.311
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libtls/tls_init.3 b/lib/libtls/tls_init.3
index 71aab47c418..52220fa4496 100644
--- a/lib/libtls/tls_init.3
+++ b/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 <tedu@openbsd.org>
.\"
@@ -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