summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libtls/tls_init.310
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3
index ec27f3a967..7d62158481 100644
--- a/src/lib/libtls/tls_init.3
+++ b/src/lib/libtls/tls_init.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tls_init.3,v 1.4 2014/11/11 04:17:34 deraadt Exp $ 1.\" $OpenBSD: tls_init.3,v 1.5 2015/01/01 08:42:08 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: November 11 2014 $ 17.Dd $Mdocdate: January 1 2015 $
18.Dt TLS 3 18.Dt TLS 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -45,6 +45,7 @@
45.Nm tls_connect , 45.Nm tls_connect ,
46.Nm tls_connect_fds , 46.Nm tls_connect_fds ,
47.Nm tls_connect_socket , 47.Nm tls_connect_socket ,
48.Nm tls_accept_socket ,
48.Nm tls_read , 49.Nm tls_read ,
49.Nm tls_write , 50.Nm tls_write ,
50.Nd TLS client and server API 51.Nd TLS client and server API
@@ -105,6 +106,8 @@
105.Ft "int" 106.Ft "int"
106.Fn tls_connect_socket "struct tls *ctx" "int s" "const char *hostname" 107.Fn tls_connect_socket "struct tls *ctx" "int s" "const char *hostname"
107.Ft "int" 108.Ft "int"
109.Fn tls_accept_socket "struct tls *ctx" "struct tls **ctx" "int s"
110.Ft "int"
108.Fn tls_read "struct tls *ctx" "void *buf" "size_t buflen" "size_t *outlen" 111.Fn tls_read "struct tls *ctx" "void *buf" "size_t buflen" "size_t *outlen"
109.Ft "int" 112.Ft "int"
110.Fn tls_write "struct tls *ctx" "const void *buf" "size_t buflen" "size_t *outlen" 113.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.
296.Fn tls_connect_socket 299.Fn tls_connect_socket
297connects a client context to an already established socket connection. 300connects a client context to an already established socket connection.
298.It 301.It
302.Fn tls_accept_socket
303accepts a client context on an already established socket connection.
304.It
299.Fn tls_read 305.Fn tls_read
300reads 306reads
301.Fa buflen 307.Fa buflen