Project

General

Profile

« Previous | Next » 

Revision 7451c146

Added by rhe almost 8 years ago

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
    consts to suppress warning.

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