diff options
author | jsing <> | 2017-08-12 03:41:48 +0000 |
---|---|---|
committer | jsing <> | 2017-08-12 03:41:48 +0000 |
commit | 8e68fe3fb6703203023f1ec23af1572ef6632406 (patch) | |
tree | 1a301e39b7ccec30952573017b9296b4510ad0e0 | |
parent | 7546879f5dd3923aeb3602fd2f930fdc6214e52e (diff) | |
download | openbsd-8e68fe3fb6703203023f1ec23af1572ef6632406.tar.gz openbsd-8e68fe3fb6703203023f1ec23af1572ef6632406.tar.bz2 openbsd-8e68fe3fb6703203023f1ec23af1572ef6632406.zip |
Document tls_reset().
-rw-r--r-- | src/lib/libtls/man/tls_client.3 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/libtls/man/tls_client.3 b/src/lib/libtls/man/tls_client.3 index 8be349c37d..98f58d4c20 100644 --- a/src/lib/libtls/man/tls_client.3 +++ b/src/lib/libtls/man/tls_client.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: tls_client.3,v 1.3 2017/04/27 20:41:08 schwarze Exp $ | 1 | .\" $OpenBSD: tls_client.3,v 1.4 2017/08/12 03:41:48 jsing Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,13 +14,14 @@ | |||
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: April 27 2017 $ | 17 | .Dd $Mdocdate: August 12 2017 $ |
18 | .Dt TLS_CLIENT 3 | 18 | .Dt TLS_CLIENT 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
21 | .Nm tls_client , | 21 | .Nm tls_client , |
22 | .Nm tls_server , | 22 | .Nm tls_server , |
23 | .Nm tls_configure , | 23 | .Nm tls_configure , |
24 | .Nm tls_reset , | ||
24 | .Nm tls_free | 25 | .Nm tls_free |
25 | .Nd configure a TLS connection | 26 | .Nd configure a TLS connection |
26 | .Sh SYNOPSIS | 27 | .Sh SYNOPSIS |
@@ -36,6 +37,8 @@ | |||
36 | .Fc | 37 | .Fc |
37 | .Ft void | 38 | .Ft void |
38 | .Fn tls_free "struct tls *ctx" | 39 | .Fn tls_free "struct tls *ctx" |
40 | .Ft void | ||
41 | .Fn tls_reset "struct tls *ctx" | ||
39 | .Sh DESCRIPTION | 42 | .Sh DESCRIPTION |
40 | A TLS connection is represented as a | 43 | A TLS connection is represented as a |
41 | .Vt struct tls | 44 | .Vt struct tls |
@@ -75,6 +78,14 @@ If | |||
75 | is called with an argument of | 78 | is called with an argument of |
76 | .Dv NULL , | 79 | .Dv NULL , |
77 | no action occurs. | 80 | no action occurs. |
81 | .Pp | ||
82 | A TLS context can be reset by calling | ||
83 | .Fn tls_reset , | ||
84 | allowing for it to be reused. | ||
85 | This is essentially equivalent to calling | ||
86 | .Fn tls_free , | ||
87 | followed by a call to the same function that was used to originally allocate | ||
88 | the TLS context. | ||
78 | .Sh RETURN VALUES | 89 | .Sh RETURN VALUES |
79 | .Fn tls_client | 90 | .Fn tls_client |
80 | and | 91 | and |