summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2019-03-18 18:31:15 +0000
committerschwarze <>2019-03-18 18:31:15 +0000
commit277c01d4872af51c7ce52c92dc8bb37c50c129c6 (patch)
tree67fa4a0ed85689c3c2a20ec31df84e7d87f45d82
parent5c452f83e9b80612a1b6d61e4403ae97194a8b67 (diff)
downloadopenbsd-277c01d4872af51c7ce52c92dc8bb37c50c129c6.tar.gz
openbsd-277c01d4872af51c7ce52c92dc8bb37c50c129c6.tar.bz2
openbsd-277c01d4872af51c7ce52c92dc8bb37c50c129c6.zip
* note that the handshake must be completed first
* correct the description of "unknown" (the previous are both from OpenSSL 1.1.1, still under a free license) * add a comment saying that TLS1_get_version() and TLS1_get_client_version() are intentionally undocumented (reasons provided by jsing@)
-rw-r--r--src/lib/libssl/man/SSL_get_version.319
1 files changed, 15 insertions, 4 deletions
diff --git a/src/lib/libssl/man/SSL_get_version.3 b/src/lib/libssl/man/SSL_get_version.3
index f8999d8695..cc4297c5ba 100644
--- a/src/lib/libssl/man/SSL_get_version.3
+++ b/src/lib/libssl/man/SSL_get_version.3
@@ -1,5 +1,6 @@
1.\" $OpenBSD: SSL_get_version.3,v 1.6 2019/01/21 12:35:33 schwarze Exp $ 1.\" $OpenBSD: SSL_get_version.3,v 1.7 2019/03/18 18:31:15 schwarze Exp $
2.\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 2.\" full merge up to: OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400
3.\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100
3.\" 4.\"
4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. 5.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>.
5.\" Copyright (c) 2001, 2005, 2014 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2001, 2005, 2014 The OpenSSL Project. All rights reserved.
@@ -48,12 +49,18 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 51.\"
51.Dd $Mdocdate: January 21 2019 $ 52.Dd $Mdocdate: March 18 2019 $
52.Dt SSL_GET_VERSION 3 53.Dt SSL_GET_VERSION 3
53.Os 54.Os
54.Sh NAME 55.Sh NAME
55.Nm SSL_get_version , 56.Nm SSL_get_version ,
56.Nm SSL_version 57.Nm SSL_version
58.\" The following are intentionally undocumented because
59.\" - the longer term plan is to remove them
60.\" - nothing appears to be using them in the wild
61.\" - and they have the wrong namespace prefix
62.\" Nm TLS1_get_version
63.\" Nm TLS1_get_client_version
57.Nd get the protocol version of a connection 64.Nd get the protocol version of a connection
58.Sh SYNOPSIS 65.Sh SYNOPSIS
59.In openssl/ssl.h 66.In openssl/ssl.h
@@ -68,6 +75,9 @@ returns the name of the protocol used for the connection
68.Pp 75.Pp
69.Fn SSL_version 76.Fn SSL_version
70returns an integer constant representing that protocol. 77returns an integer constant representing that protocol.
78.Pp
79These functions only return reliable results
80after the initial handshake has been completed.
71.Sh RETURN VALUES 81.Sh RETURN VALUES
72The following strings or integers can be returned: 82The following strings or integers can be returned:
73.Bl -tag -width Ds 83.Bl -tag -width Ds
@@ -82,7 +92,8 @@ The connection uses the TLSv1.3 protocol.
82.It Qo DTLSv1 Qc No or Dv DTLS1_VERSION 92.It Qo DTLSv1 Qc No or Dv DTLS1_VERSION
83The connection uses the Datagram Transport Layer Security 1.0 protocol. 93The connection uses the Datagram Transport Layer Security 1.0 protocol.
84.It Qq unknown 94.It Qq unknown
85This indicates that no version has been set (no connection established). 95This indicates an unknown protocol version;
96it cannot currently happen with LibreSSL.
86.El 97.El
87.Sh SEE ALSO 98.Sh SEE ALSO
88.Xr ssl 3 99.Xr ssl 3