diff options
author | 2017-08-12 03:41:48 +0000 | |
---|---|---|
committer | 2017-08-12 03:41:48 +0000 | |
commit | 6e76a016fb878af7010f576db9493f762f111613 (patch) | |
tree | 2af32a45fd2292bdb486b5349f31fcca20775912 /lib/libtls | |
parent | add option -l to show only listening sockets (for tcp) (diff) | |
download | wireguard-openbsd-6e76a016fb878af7010f576db9493f762f111613.tar.xz wireguard-openbsd-6e76a016fb878af7010f576db9493f762f111613.zip |
Document tls_reset().
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/man/tls_client.3 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/libtls/man/tls_client.3 b/lib/libtls/man/tls_client.3 index 8be349c37d4..98f58d4c20b 100644 --- a/lib/libtls/man/tls_client.3 +++ b/lib/libtls/man/tls_client.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tls_client.3,v 1.3 2017/04/27 20:41:08 schwarze Exp $ +.\" $OpenBSD: tls_client.3,v 1.4 2017/08/12 03:41:48 jsing Exp $ .\" .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> .\" @@ -14,13 +14,14 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 27 2017 $ +.Dd $Mdocdate: August 12 2017 $ .Dt TLS_CLIENT 3 .Os .Sh NAME .Nm tls_client , .Nm tls_server , .Nm tls_configure , +.Nm tls_reset , .Nm tls_free .Nd configure a TLS connection .Sh SYNOPSIS @@ -36,6 +37,8 @@ .Fc .Ft void .Fn tls_free "struct tls *ctx" +.Ft void +.Fn tls_reset "struct tls *ctx" .Sh DESCRIPTION A TLS connection is represented as a .Vt struct tls @@ -75,6 +78,14 @@ If is called with an argument of .Dv NULL , no action occurs. +.Pp +A TLS context can be reset by calling +.Fn tls_reset , +allowing for it to be reused. +This is essentially equivalent to calling +.Fn tls_free , +followed by a call to the same function that was used to originally allocate +the TLS context. .Sh RETURN VALUES .Fn tls_client and |