summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2015-09-10 13:29:53 +0000
committerjsing <>2015-09-10 13:29:53 +0000
commit54245b5c252e86d2dd575e8a6acf19603bfc23cb (patch)
tree92d08910fcea5236f6e3625464ed9679286ad45b
parent5c084c7f0a975a7ee5f9c0458c051abd6685c259 (diff)
downloadopenbsd-54245b5c252e86d2dd575e8a6acf19603bfc23cb.tar.gz
openbsd-54245b5c252e86d2dd575e8a6acf19603bfc23cb.tar.bz2
openbsd-54245b5c252e86d2dd575e8a6acf19603bfc23cb.zip
Correctly document the behaviour of tls_close() - the caller is responsible
for closing the file descriptors unless libtls allocated them. ok beck@
-rw-r--r--src/lib/libtls/tls_init.311
1 files changed, 6 insertions, 5 deletions
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 @@
1.\" $OpenBSD: tls_init.3,v 1.30 2015/09/10 13:23:57 jsing Exp $ 1.\" $OpenBSD: tls_init.3,v 1.31 2015/09/10 13:29:53 jsing Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" 4.\"
@@ -422,10 +422,11 @@ The amount of data written is returned in
422.It 422.It
423.Fn tls_close 423.Fn tls_close
424closes a connection after use. 424closes a connection after use.
425If the connection was established using 425Only the TLS layer will be shutdown and the caller is responsible for closing
426.Fn tls_connect_fds , 426the file descriptors, unless the connection was established using
427only the TLS layer will be closed and it is the caller's responsibility to close 427.Fn tls_connect
428the file descriptors. 428or
429.Fn tls_connect_servername .
429.El 430.El
430.Sh RETURN VALUES 431.Sh RETURN VALUES
431Functions that return 432Functions that return