From 54245b5c252e86d2dd575e8a6acf19603bfc23cb Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 10 Sep 2015 13:29:53 +0000 Subject: Correctly document the behaviour of tls_close() - the caller is responsible for closing the file descriptors unless libtls allocated them. ok beck@ --- src/lib/libtls/tls_init.3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/lib/libtls/tls_init.3') diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3 index 6389a96722..e11bc30901 100644 --- a/src/lib/libtls/tls_init.3 +++ b/src/lib/libtls/tls_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tls_init.3,v 1.30 2015/09/10 13:23:57 jsing Exp $ +.\" $OpenBSD: tls_init.3,v 1.31 2015/09/10 13:29:53 jsing Exp $ .\" .\" Copyright (c) 2014 Ted Unangst .\" @@ -422,10 +422,11 @@ The amount of data written is returned in .It .Fn tls_close closes a connection after use. -If the connection was established using -.Fn tls_connect_fds , -only the TLS layer will be closed and it is the caller's responsibility to close -the file descriptors. +Only the TLS layer will be shutdown and the caller is responsible for closing +the file descriptors, unless the connection was established using +.Fn tls_connect +or +.Fn tls_connect_servername . .El .Sh RETURN VALUES Functions that return -- cgit v1.2.3-55-g6feb