Christian Heimes af51a74ade Provide getters for min/max proto version
OpenSSL 1.1.0 made SSL_CTX and SSL structs opaque and introduced a new
API to set the minimum and maximum protocol version for SSL_CTX with
TLS_method(). Add getters to introspect the configured versions:

  int SSL_CTX_get_min_proto_version(SSL_CTX *ctx);
  int SSL_CTX_get_max_proto_version(SSL_CTX *ctx);
  int SSL_get_min_proto_version(SSL *ssl);
  int SSL_get_max_proto_version(SSL *ssl);

NOTE: The getters do not resolv the version in case when the minimum or
maxium version are configured as '0' (meaning auto-select lowest and
highst version number).

Signed-off-by: Christian Heimes <christian@python.org>

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>

(cherry picked from commit 3edabd3ccb7aac89af5a63cfb2378e33a8be05d7)

Updated for new manual page location and TLS 1.3.

(Merged from https://github.com/openssl/openssl/pull/4376)
2017-09-15 10:31:54 -05:00
..
2016-08-18 14:02:29 +02:00
2016-08-18 14:02:29 +02:00
2016-08-18 14:02:29 +02:00
2016-05-17 14:19:19 -04:00
2016-08-18 14:02:29 +02:00
2017-07-09 08:51:47 +02:00
2016-08-18 14:02:29 +02:00
2017-08-22 07:44:24 +10:00
2016-08-18 14:02:29 +02:00
2016-08-18 14:02:29 +02:00
2017-07-31 09:08:29 -04:00
2016-08-18 14:02:29 +02:00
2016-05-17 14:19:19 -04:00
2016-08-18 14:02:29 +02:00