Project

General

Profile

« Previous | Next » 

Revision 74c38e5d

Added by rhe almost 8 years ago

openssl: avoid deprecated version-specific ssl methods if necessary

  • ext/openssl/extconf.rb: Check for SSL_CTX_set_min_proto_version()
    macro added in OpenSSL 1.1.0. Version-specific methods, such as
    TLSv1_method(), are deprecated in OpenSSL 1.1.0. We need to use
    version-flexible methods (TLS_*method() or SSLv23_*method()) and
    disable other protocol versions as necessary.
    [ruby-core:75225] [Feature #12324]

  • ext/openssl/ossl_ssl.c: Use SSL_CTX_set_{min,max}_proto_version() to
    fix the protocol version.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e