summaryrefslogtreecommitdiff
path: root/src/lib/libtls/man/tls_conn_version.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/man/tls_conn_version.3')
-rw-r--r--src/lib/libtls/man/tls_conn_version.323
1 files changed, 20 insertions, 3 deletions
diff --git a/src/lib/libtls/man/tls_conn_version.3 b/src/lib/libtls/man/tls_conn_version.3
index f8a1678e8c..d9ee4ac4b6 100644
--- a/src/lib/libtls/man/tls_conn_version.3
+++ b/src/lib/libtls/man/tls_conn_version.3
@@ -1,7 +1,7 @@
1.\" $OpenBSD: tls_conn_version.3,v 1.6 2017/10/08 06:56:36 jmc Exp $ 1.\" $OpenBSD: tls_conn_version.3,v 1.7 2018/02/10 04:43:16 jsing Exp $
2.\" 2.\"
3.\" Copyright (c) 2015 Bob Beck <beck@openbsd.org> 3.\" Copyright (c) 2015 Bob Beck <beck@openbsd.org>
4.\" Copyright (c) 2016 Joel Sing <jsing@openbsd.org> 4.\" Copyright (c) 2016, 2018 Joel Sing <jsing@openbsd.org>
5.\" 5.\"
6.\" Permission to use, copy, modify, and distribute this software for any 6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above 7.\" purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +15,7 @@
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\" 17.\"
18.Dd $Mdocdate: October 8 2017 $ 18.Dd $Mdocdate: February 10 2018 $
19.Dt TLS_CONN_VERSION 3 19.Dt TLS_CONN_VERSION 3
20.Os 20.Os
21.Sh NAME 21.Sh NAME
@@ -23,6 +23,7 @@
23.Nm tls_conn_cipher , 23.Nm tls_conn_cipher ,
24.Nm tls_conn_alpn_selected , 24.Nm tls_conn_alpn_selected ,
25.Nm tls_conn_servername , 25.Nm tls_conn_servername ,
26.Nm tls_conn_session_resumed ,
26.Nm tls_peer_cert_provided , 27.Nm tls_peer_cert_provided ,
27.Nm tls_peer_cert_contains_name , 28.Nm tls_peer_cert_contains_name ,
28.Nm tls_peer_cert_chain_pem , 29.Nm tls_peer_cert_chain_pem ,
@@ -43,6 +44,8 @@
43.Ft const char * 44.Ft const char *
44.Fn tls_conn_servername "struct tls *ctx" 45.Fn tls_conn_servername "struct tls *ctx"
45.Ft int 46.Ft int
47.Fn tls_conn_session_resumed "struct tls *ctx"
48.Ft int
46.Fn tls_peer_cert_provided "struct tls *ctx" 49.Fn tls_peer_cert_provided "struct tls *ctx"
47.Ft int 50.Ft int
48.Fo tls_peer_cert_contains_name 51.Fo tls_peer_cert_contains_name
@@ -90,6 +93,12 @@ returns a string corresponding to the servername that the client connected to
90.Ar ctx 93.Ar ctx
91requested by sending a TLS Server Name Indication extension (server only). 94requested by sending a TLS Server Name Indication extension (server only).
92.Pp 95.Pp
96.Fn tls_conn_session_resumed
97indicates whether a TLS session has been resumed during the handshake with
98the server connected to
99.Ar ctx
100(client only).
101.Pp
93.Fn tls_peer_cert_provided 102.Fn tls_peer_cert_provided
94checks if the peer of 103checks if the peer of
95.Ar ctx 104.Ar ctx
@@ -146,6 +155,10 @@ POINTER TO
146.Xr tls_ocsp_process_response 3 155.Xr tls_ocsp_process_response 3
147.Sh RETURN VALUES 156.Sh RETURN VALUES
148The 157The
158.Fn tls_conn_session_resumed
159function returns 1 if a TLS session was resumed or 0 if it was not.
160.Pp
161The
149.Fn tls_peer_cert_provided 162.Fn tls_peer_cert_provided
150and 163and
151.Fn tls_peer_cert_contains_name 164.Fn tls_peer_cert_contains_name
@@ -183,6 +196,10 @@ and
183.Fn tls_conn_alpn_selected 196.Fn tls_conn_alpn_selected
184appeared in 197appeared in
185.Ox 6.1 . 198.Ox 6.1 .
199.Pp
200.Fn tls_conn_session_resumed
201appeared in
202.Ox 6.3 .
186.Sh AUTHORS 203.Sh AUTHORS
187.An Bob Beck Aq Mt beck@openbsd.org 204.An Bob Beck Aq Mt beck@openbsd.org
188.An Joel Sing Aq Mt jsing@openbsd.org 205.An Joel Sing Aq Mt jsing@openbsd.org