summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2017-05-06 21:18:48 +0000
committerjsing <>2017-05-06 21:18:48 +0000
commitbe401ff2f5c1e10c633b1444a9bf3b59a9b487a0 (patch)
tree963d5d41c5f605fc447d96f84b43f2e3d1de06f3 /src
parent7b5928f0dae9f2bd8bff7efc646ac8be2ba312da (diff)
downloadopenbsd-be401ff2f5c1e10c633b1444a9bf3b59a9b487a0.tar.gz
openbsd-be401ff2f5c1e10c633b1444a9bf3b59a9b487a0.tar.bz2
openbsd-be401ff2f5c1e10c633b1444a9bf3b59a9b487a0.zip
Be explicit about when it is safe to call tls_config_free().
Discussed with beck@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libtls/man/tls_init.311
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/libtls/man/tls_init.3 b/src/lib/libtls/man/tls_init.3
index 7c461cbcb7..c83c0375ab 100644
--- a/src/lib/libtls/man/tls_init.3
+++ b/src/lib/libtls/man/tls_init.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tls_init.3,v 1.6 2017/04/27 20:41:08 schwarze Exp $ 1.\" $OpenBSD: tls_init.3,v 1.7 2017/05/06 21:18:48 jsing Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" Copyright (c) 2016 Joel Sing <jsing@openbsd.org> 4.\" Copyright (c) 2016 Joel Sing <jsing@openbsd.org>
@@ -16,7 +16,7 @@
16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: April 27 2017 $ 19.Dd $Mdocdate: May 6 2017 $
20.Dt TLS_INIT 3 20.Dt TLS_INIT 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -97,9 +97,14 @@ After use, a TLS connection should be closed with
97and then freed by calling 97and then freed by calling
98.Xr tls_free 3 . 98.Xr tls_free 3 .
99.Pp 99.Pp
100When no more contexts are to be created, 100When no more contexts are to be configured,
101the configuration object should be freed by calling 101the configuration object should be freed by calling
102.Fn tls_config_free . 102.Fn tls_config_free .
103It is safe to call
104.Fn tls_config_free
105as soon as the final call to
106.Fn tls_configure
107has been made.
103If 108If
104.Fa config 109.Fa config
105is 110is