From 8e68fe3fb6703203023f1ec23af1572ef6632406 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 12 Aug 2017 03:41:48 +0000 Subject: Document tls_reset(). --- src/lib/libtls/man/tls_client.3 | 15 +++++++++++++-- 1 file 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 @@ -.\" $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 .\" @@ -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 -- cgit v1.2.3-55-g6feb