[ruby-cvs:62467] rhe:r55304 (trunk): openssl: avoid deprecated version-specific ssl methods if necessary

rhe at ruby-lang.org rhe at ruby-lang.org
Tue Jun 7 14:57:25 JST 2016


rhe	2016-06-07 14:57:25 +0900 (Tue, 07 Jun 2016)

  New Revision: 55304

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55304

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/extconf.rb
    trunk/ext/openssl/ossl_ssl.c


More information about the ruby-cvs mailing list