diff options
author | tb <> | 2018-07-09 19:51:18 +0000 |
---|---|---|
committer | tb <> | 2018-07-09 19:51:18 +0000 |
commit | 8f893d2599ab84649f4191a0d3b4d6321ff08314 (patch) | |
tree | 3ce3355797e1100a68baa4de9af865bc9a6d03b1 | |
parent | 4a2992348558e1fe8a1b626e9f36d1b3d5343a9f (diff) | |
download | openbsd-8f893d2599ab84649f4191a0d3b4d6321ff08314.tar.gz openbsd-8f893d2599ab84649f4191a0d3b4d6321ff08314.tar.bz2 openbsd-8f893d2599ab84649f4191a0d3b4d6321ff08314.zip |
Move a detail on tls_connect(3) to its documentation and be a bit more
explicit about the servername argument of tls_connect_servername(3).
input & ok jsing, input & ok schwarze on earlier version
-rw-r--r-- | src/lib/libtls/man/tls_connect.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libtls/man/tls_connect.3 b/src/lib/libtls/man/tls_connect.3 index 161e0d644d..4c4f01c256 100644 --- a/src/lib/libtls/man/tls_connect.3 +++ b/src/lib/libtls/man/tls_connect.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: tls_connect.3,v 1.3 2017/01/28 00:59:36 schwarze Exp $ | 1 | .\" $OpenBSD: tls_connect.3,v 1.4 2018/07/09 19:51:18 tb Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | .\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | .\" Copyright (c) 2014, 2015 Joel Sing <jsing@openbsd.org> | 4 | .\" Copyright (c) 2014, 2015 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: January 28 2017 $ | 19 | .Dd $Mdocdate: July 9 2018 $ |
20 | .Dt TLS_CONNECT 3 | 20 | .Dt TLS_CONNECT 3 |
21 | .Os | 21 | .Os |
22 | .Sh NAME | 22 | .Sh NAME |
@@ -84,13 +84,15 @@ If it is | |||
84 | then a | 84 | then a |
85 | .Fa host | 85 | .Fa host |
86 | of the format "hostname:port" is permitted. | 86 | of the format "hostname:port" is permitted. |
87 | The name to use for verification is inferred from the | ||
88 | .Ar host | ||
89 | value. | ||
87 | .Pp | 90 | .Pp |
88 | The | 91 | The |
89 | .Fn tls_connect_servername | 92 | .Fn tls_connect_servername |
90 | function has the same behaviour, however the name to use for verification is | 93 | function has the same behaviour, however the name to use for verification is |
91 | explicitly provided, rather than being inferred from the | 94 | explicitly provided, for the case where the TLS server name differs from the |
92 | .Ar host | 95 | DNS name. |
93 | value. | ||
94 | .Pp | 96 | .Pp |
95 | An already existing socket can be upgraded to a secure connection by calling | 97 | An already existing socket can be upgraded to a secure connection by calling |
96 | .Fn tls_connect_socket . | 98 | .Fn tls_connect_socket . |