[ruby-cvs:62506] rhe:r55342 (trunk): openssl: fix build with OPENSSL_NO_EC

rhe at ruby-lang.org rhe at ruby-lang.org
Thu Jun 9 19:46:47 JST 2016


rhe	2016-06-09 19:46:46 +0900 (Thu, 09 Jun 2016)

  New Revision: 55342

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

  Log:
    openssl: fix build with OPENSSL_NO_EC
    
    * ext/openssl/ossl_ssl.c: Add define guards for OPENSSL_NO_EC.
      SSL_CTX_set_ecdh_auto() is defined even when ECDH is disabled in
      OpenSSL's configuration. This fixes r55214.
    
    * test/openssl/test_pair.rb (test_ecdh_curves): Skip if the OpenSSL does
      not support ECDH.
    
    * test/openssl/utils.rb (start_server): Ignore error in
      SSLContext#ecdh_curves=.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_ssl.c
    trunk/test/openssl/test_pair.rb
    trunk/test/openssl/utils.rb


More information about the ruby-cvs mailing list