-.\" $OpenBSD: tls_init.3,v 1.5 2015/01/01 08:42:08 schwarze Exp $
+.\" $OpenBSD: tls_init.3,v 1.6 2015/01/01 13:30:52 schwarze Exp $
.\"
.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
.\"
.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
.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"
.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