]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update version docs
authorMatt Caswell <matt@openssl.org>
Thu, 19 Apr 2018 12:32:45 +0000 (13:32 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 27 Apr 2018 09:12:33 +0000 (10:12 +0100)
Make it clear that you should not attempt to get the version before the
first handshake is complete.

Fixes #2893

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6014)

doc/ssl/SSL_get_version.pod

index 23b6497d4f3ba6c18f00fadccd2c1f6fb6fc4969..3c2f825000c97af142ead852df58dcbf9f1e38af 100644 (file)
@@ -15,7 +15,9 @@ SSL_get_version, SSL_is_dtls - get the protocol information of a connection
 =head1 DESCRIPTION
 
 SSL_get_version() returns the name of the protocol used for the
-connection B<ssl>.
+connection B<ssl>. It should only be called after the initial handshake has been
+completed. Prior to that the results returned from this function may be
+unreliable.
 
 SSL_is_dtls() returns one if the connection is using DTLS, zero if not.
 
@@ -43,7 +45,7 @@ The connection uses the TLSv1.2 protocol.
 
 =item unknown
 
-This indicates that no version has been set (no connection established).
+This indicates an unknown protocol version.
 
 =back