summaryrefslogtreecommitdiffstats
path: root/lib/libtls
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-01 08:42:08 +0000
committerschwarze <schwarze@openbsd.org>2015-01-01 08:42:08 +0000
commit4a25dc057fd1f8025800c4be64754bd9f0c291b2 (patch)
treef4532f5a5459dddad7db430b132c51ecb9422d18 /lib/libtls
parentGet rid of .Tn; from Kaspars at Bankovskis dot net, tweaked by me. (diff)
downloadwireguard-openbsd-4a25dc057fd1f8025800c4be64754bd9f0c291b2.tar.xz
wireguard-openbsd-4a25dc057fd1f8025800c4be64754bd9f0c291b2.zip
minimally document tls_accept_socket();
patch from Sunil at Nimmagadda dot net
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/tls_init.310
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libtls/tls_init.3 b/lib/libtls/tls_init.3
index ec27f3a967b..7d62158481a 100644
--- a/lib/libtls/tls_init.3
+++ b/lib/libtls/tls_init.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tls_init.3,v 1.4 2014/11/11 04:17:34 deraadt Exp $
+.\" $OpenBSD: tls_init.3,v 1.5 2015/01/01 08:42:08 schwarze Exp $
.\"
.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
.\"
@@ -14,7 +14,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: November 11 2014 $
+.Dd $Mdocdate: January 1 2015 $
.Dt TLS 3
.Os
.Sh NAME
@@ -45,6 +45,7 @@
.Nm tls_connect ,
.Nm tls_connect_fds ,
.Nm tls_connect_socket ,
+.Nm tls_accept_socket ,
.Nm tls_read ,
.Nm tls_write ,
.Nd TLS client and server API
@@ -105,6 +106,8 @@
.Ft "int"
.Fn tls_connect_socket "struct tls *ctx" "int s" "const char *hostname"
.Ft "int"
+.Fn tls_accept_socket "struct tls *ctx" "struct tls **ctx" "int s"
+.Ft "int"
.Fn tls_read "struct tls *ctx" "void *buf" "size_t buflen" "size_t *outlen"
.Ft "int"
.Fn tls_write "struct tls *ctx" "const void *buf" "size_t buflen" "size_t *outlen"
@@ -296,6 +299,9 @@ connects a client context to a pair of existing file descriptors.
.Fn tls_connect_socket
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.
+.It
.Fn tls_read
reads
.Fa buflen