diff options
author | jsing <> | 2015-09-10 13:29:53 +0000 |
---|---|---|
committer | jsing <> | 2015-09-10 13:29:53 +0000 |
commit | 54245b5c252e86d2dd575e8a6acf19603bfc23cb (patch) | |
tree | 92d08910fcea5236f6e3625464ed9679286ad45b | |
parent | 5c084c7f0a975a7ee5f9c0458c051abd6685c259 (diff) | |
download | openbsd-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.3 | 11 |
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 |
424 | closes a connection after use. | 424 | closes a connection after use. |
425 | If the connection was established using | 425 | Only the TLS layer will be shutdown and the caller is responsible for closing |
426 | .Fn tls_connect_fds , | 426 | the file descriptors, unless the connection was established using |
427 | only the TLS layer will be closed and it is the caller's responsibility to close | 427 | .Fn tls_connect |
428 | the file descriptors. | 428 | or |
429 | .Fn tls_connect_servername . | ||
429 | .El | 430 | .El |
430 | .Sh RETURN VALUES | 431 | .Sh RETURN VALUES |
431 | Functions that return | 432 | Functions that return |