diff options
| author | tb <> | 2018-07-09 19:51:18 +0000 |
|---|---|---|
| committer | tb <> | 2018-07-09 19:51:18 +0000 |
| commit | da5bb38d000fd8a42cdaf0200269c630ddb90bce (patch) | |
| tree | 3ce3355797e1100a68baa4de9af865bc9a6d03b1 | |
| parent | e0bdc06279f9b86128f01c513ca26c39a0799d15 (diff) | |
| download | openbsd-da5bb38d000fd8a42cdaf0200269c630ddb90bce.tar.gz openbsd-da5bb38d000fd8a42cdaf0200269c630ddb90bce.tar.bz2 openbsd-da5bb38d000fd8a42cdaf0200269c630ddb90bce.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 . |
