Clarify the return value of SSL_client_version()
authorMatt Caswell <matt@openssl.org>
Mon, 3 Sep 2018 10:57:33 +0000 (11:57 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 4 Sep 2018 10:34:40 +0000 (11:34 +0100)
commit8ec2bde994c272f7b14b4cc4d9232f38b9211cb1
tree3731f5c75b82166cc43de862e1b5c6d10ef1c829
parentb2c4909c208994a94b4b09e1c34316c889985bb0
Clarify the return value of SSL_client_version()

The SSL_client_version() function returns the value held in the
legacy_version field of the ClientHello. This is never greater than
TLSv1.2, even if TLSv1.3 later gets negotiated.

Fixes #7079

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7095)
doc/man3/SSL_get_version.pod