Christian Heimes 3edabd3ccb 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>
(Merged from https://github.com/openssl/openssl/pull/4364)
2017-09-15 10:04:47 -05:00
..
2017-07-03 10:40:33 -04:00
2017-04-25 11:13:39 +01:00
2017-07-03 10:40:33 -04:00
2017-08-01 09:30:11 +10:00
2017-08-01 09:30:11 +10:00
2017-03-12 08:27:30 -04:00
2017-03-20 16:25:22 -04:00
2017-03-11 08:56:44 -05:00
2017-08-23 17:33:27 -04:00
2017-03-11 08:56:44 -05:00
2017-04-07 13:48:19 -04:00
2017-07-05 12:53:28 -05:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-07-03 19:26:56 -04:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-07-03 10:40:33 -04:00
2017-03-11 08:56:44 -05:00
2017-08-01 09:30:11 +10:00
2016-11-11 13:06:43 +01:00
2017-08-01 09:30:11 +10:00
2017-03-11 08:56:44 -05:00
2017-08-01 09:30:11 +10:00
2017-08-23 23:54:51 +01:00
2017-09-14 14:19:30 +08:00
2017-08-01 09:30:11 +10:00
2017-09-02 09:35:50 -04:00
2017-08-01 09:30:11 +10:00
2017-07-03 10:40:33 -04:00
2017-08-01 09:30:11 +10:00
2017-05-08 21:17:28 +02:00
2017-07-03 10:40:33 -04:00
2017-06-11 16:21:33 -04:00
2017-07-12 11:09:39 -04:00
2017-07-22 14:00:07 -04:00
2017-08-01 09:30:11 +10:00
2017-03-11 08:56:44 -05:00
2017-08-11 10:16:33 -04:00
2017-07-03 10:40:33 -04:00
2017-03-29 07:18:57 +02:00
2017-03-30 14:18:11 +02:00
2017-03-29 07:14:29 +02:00
2017-07-03 10:40:33 -04:00
2017-06-11 16:21:33 -04:00
2017-04-25 22:12:35 +01:00
2017-07-03 10:40:33 -04:00