diff options
author | schwarze <> | 2017-04-27 20:41:08 +0000 |
---|---|---|
committer | schwarze <> | 2017-04-27 20:41:08 +0000 |
commit | b3bc866e257eefa4679890545d6980ea3206bce3 (patch) | |
tree | 4992a832fd1fbdffff7b40b95a34ab907e0041c4 | |
parent | 201c97ba560e6c59a7dbb7d3743d0d08abb2b545 (diff) | |
download | openbsd-b3bc866e257eefa4679890545d6980ea3206bce3.tar.gz openbsd-b3bc866e257eefa4679890545d6980ea3206bce3.tar.bz2 openbsd-b3bc866e257eefa4679890545d6980ea3206bce3.zip |
tls_free(3) and tls_config_free(3) accept NULL;
patch from Matthew Martin <phy1729 at gmail dot com>,
slightly tweaked by me
-rw-r--r-- | src/lib/libtls/man/tls_client.3 | 9 | ||||
-rw-r--r-- | src/lib/libtls/man/tls_init.3 | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/lib/libtls/man/tls_client.3 b/src/lib/libtls/man/tls_client.3 index 47114e4ac2..8be349c37d 100644 --- a/src/lib/libtls/man/tls_client.3 +++ b/src/lib/libtls/man/tls_client.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: tls_client.3,v 1.2 2017/01/28 00:59:36 schwarze Exp $ | 1 | .\" $OpenBSD: tls_client.3,v 1.3 2017/04/27 20:41:08 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: January 28 2017 $ | 17 | .Dd $Mdocdate: April 27 2017 $ |
18 | .Dt TLS_CLIENT 3 | 18 | .Dt TLS_CLIENT 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -70,6 +70,11 @@ After use, a TLS context should be closed with | |||
70 | .Xr tls_close 3 , | 70 | .Xr tls_close 3 , |
71 | and then freed by calling | 71 | and then freed by calling |
72 | .Fn tls_free . | 72 | .Fn tls_free . |
73 | If | ||
74 | .Fn tls_free | ||
75 | is called with an argument of | ||
76 | .Dv NULL , | ||
77 | no action occurs. | ||
73 | .Sh RETURN VALUES | 78 | .Sh RETURN VALUES |
74 | .Fn tls_client | 79 | .Fn tls_client |
75 | and | 80 | and |
diff --git a/src/lib/libtls/man/tls_init.3 b/src/lib/libtls/man/tls_init.3 index f06a966255..7c461cbcb7 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.5 2017/02/20 16:01:15 jmc Exp $ | 1 | .\" $OpenBSD: tls_init.3,v 1.6 2017/04/27 20:41:08 schwarze 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: February 20 2017 $ | 19 | .Dd $Mdocdate: April 27 2017 $ |
20 | .Dt TLS_INIT 3 | 20 | .Dt TLS_INIT 3 |
21 | .Os | 21 | .Os |
22 | .Sh NAME | 22 | .Sh NAME |
@@ -100,6 +100,11 @@ and then freed by calling | |||
100 | When no more contexts are to be created, | 100 | When no more contexts are to be created, |
101 | the configuration object should be freed by calling | 101 | the configuration object should be freed by calling |
102 | .Fn tls_config_free . | 102 | .Fn tls_config_free . |
103 | If | ||
104 | .Fa config | ||
105 | is | ||
106 | .Dv NULL , | ||
107 | no action occurs. | ||
103 | .Sh RETURN VALUES | 108 | .Sh RETURN VALUES |
104 | .Fn tls_init | 109 | .Fn tls_init |
105 | returns 0 on success or -1 on error. | 110 | returns 0 on success or -1 on error. |