diff options
author | tedu <> | 2015-02-21 21:41:00 +0000 |
---|---|---|
committer | tedu <> | 2015-02-21 21:41:00 +0000 |
commit | 104de82a2457ba4f22f7c242f2b421f13bb3c5f4 (patch) | |
tree | 49087eacb9e18ae7f91e6e9564cd45c971072b1d /src/lib | |
parent | 24bd199750e6f3b1bb54b0b2c803ee27dd6b2f6a (diff) | |
download | openbsd-104de82a2457ba4f22f7c242f2b421f13bb3c5f4.tar.gz openbsd-104de82a2457ba4f22f7c242f2b421f13bb3c5f4.tar.bz2 openbsd-104de82a2457ba4f22f7c242f2b421f13bb3c5f4.zip |
explain how tls_accept_socket works.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libtls/tls_init.3 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3 index 71aab47c41..52220fa449 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.16 2015/02/21 19:58:39 tedu Exp $ | 1 | .\" $OpenBSD: tls_init.3,v 1.17 2015/02/21 21:41:00 tedu Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -358,7 +358,14 @@ connects a client context to a pair of existing file descriptors. | |||
358 | connects a client context to an already established socket connection. | 358 | connects a client context to an already established socket connection. |
359 | .It | 359 | .It |
360 | .Fn tls_accept_socket | 360 | .Fn tls_accept_socket |
361 | accepts a client context on an already established socket connection. | 361 | creates a new context suitable for reading and writing on an already |
362 | established socket connection and returns it in | ||
363 | .Fa *cctx . | ||
364 | A configured server context should be passed in | ||
365 | .Fa ctx | ||
366 | and | ||
367 | .Fa *cctx | ||
368 | should be initialized to NULL. | ||
362 | .It | 369 | .It |
363 | .Fn tls_read | 370 | .Fn tls_read |
364 | reads | 371 | reads |