[ruby-cvs:62452] rhe:r55289 (trunk): openssl: use SSL_is_server()

rhe at ruby-lang.org rhe at ruby-lang.org
Mon Jun 6 01:36:39 JST 2016


rhe	2016-06-06 01:36:39 +0900 (Mon, 06 Jun 2016)

  New Revision: 55289

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

  Log:
    openssl: use SSL_is_server()
    
    * ext/openssl/extconf.rb: Check existence of SSL_is_server(). This
      function was introduced in OpenSSL 1.0.2.
      [ruby-core:75225] [Feature #12324]
    
    * ext/openssl/openssl_missing.h: Implement SSL_is_server() if missing.
    
    * ext/openssl/ossl_ssl.c (ssl_info_cb): Use SSL_is_server() to see if
      the SSL is server. The state machine in OpenSSL was rewritten and
      SSL_get_state() no longer returns SSL_ST_ACCEPT.
    
      (ossl_ssl_cipher_to_ary, ossl_sslctx_session_get_cb): Add some
      `const`s to suppress warning.

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


More information about the ruby-cvs mailing list