diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 13:29:54 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 13:29:54 +0000 |
commit | 8f97ac0f09ebbdf3bf00792cb555f5a19b9cb399 (patch) | |
tree | 341e4143735dd03a2f4d5e6eb4385e4b08afc60f /lib | |
parent | 413e464fe263335b5b52d52b1f3b1a0ef3faae2f (diff) |
Correctly document the behaviour of tls_close() - the caller is responsible
for closing the file descriptors unless libtls allocated them.
ok beck@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtls/tls_init.3 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libtls/tls_init.3 b/lib/libtls/tls_init.3 index 6389a967222..e11bc309014 100644 --- a/lib/libtls/tls_init.3 +++ b/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 <tedu@openbsd.org> .\" @@ -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 |