summaryrefslogtreecommitdiff
path: root/src/lib/libtls/man
diff options
context:
space:
mode:
authortb <>2018-07-09 19:51:18 +0000
committertb <>2018-07-09 19:51:18 +0000
commitda5bb38d000fd8a42cdaf0200269c630ddb90bce (patch)
tree3ce3355797e1100a68baa4de9af865bc9a6d03b1 /src/lib/libtls/man
parente0bdc06279f9b86128f01c513ca26c39a0799d15 (diff)
downloadopenbsd-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
Diffstat (limited to 'src/lib/libtls/man')
-rw-r--r--src/lib/libtls/man/tls_connect.312
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
84then a 84then a
85.Fa host 85.Fa host
86of the format "hostname:port" is permitted. 86of the format "hostname:port" is permitted.
87The name to use for verification is inferred from the
88.Ar host
89value.
87.Pp 90.Pp
88The 91The
89.Fn tls_connect_servername 92.Fn tls_connect_servername
90function has the same behaviour, however the name to use for verification is 93function has the same behaviour, however the name to use for verification is
91explicitly provided, rather than being inferred from the 94explicitly provided, for the case where the TLS server name differs from the
92.Ar host 95DNS name.
93value.
94.Pp 96.Pp
95An already existing socket can be upgraded to a secure connection by calling 97An already existing socket can be upgraded to a secure connection by calling
96.Fn tls_connect_socket . 98.Fn tls_connect_socket .