openssl: use SSL_CTX_set_<min|max>_proto_version() when available
authorClément Notin <clement@notin.org>
Sun, 8 Sep 2019 14:44:54 +0000 (16:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2019 06:11:42 +0000 (08:11 +0200)
commitffe34b7b59e842fc37f2d19418dc2d7a5075e7ca
tree24bc100c6cd2773f11897fa0624e28eaf9ac93e9
parent9136542d3323468a76c68c1b3bfec5d8f1bff8fb
openssl: use SSL_CTX_set_<min|max>_proto_version() when available

OpenSSL 1.1.0 adds SSL_CTX_set_<min|max>_proto_version() that we now use
when available.  Existing code is preserved for older versions of
OpenSSL.

Closes #4304
lib/vtls/openssl.c