summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-02-21 21:41:00 +0000
committertedu <tedu@openbsd.org>2015-02-21 21:41:00 +0000
commitc5634e8e7a8990137abb85785803f0b18eebbdb3 (patch)
tree1706a93a97c7864da08d111cd4a1b87a8155f20b /lib
parentcorrect paths to configuration files being written/updated; (diff)
downloadwireguard-openbsd-c5634e8e7a8990137abb85785803f0b18eebbdb3.tar.xz
wireguard-openbsd-c5634e8e7a8990137abb85785803f0b18eebbdb3.zip
explain how tls_accept_socket works.
Diffstat (limited to 'lib')
-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