summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 .