[ruby-cvs:62472] rhe:r55309 (trunk): openssl: add SSL::SSLContext#security_level{=, }

rhe at ruby-lang.org rhe at ruby-lang.org
Tue Jun 7 16:52:24 JST 2016


rhe	2016-06-07 16:52:24 +0900 (Tue, 07 Jun 2016)

  New Revision: 55309

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

  Log:
    openssl: add SSL::SSLContext#security_level{=,}
    
    * ext/openssl/extconf.rb: Check for SSL_CTX_get_security_level().
      OpenSSL 1.1.0 introduced "security level".
      [ruby-core:75225] [Feature #12324]
    
    * ext/openssl/ossl_ssl.c (ossl_sslctx_{get,set}_security_level): Add
      SSLContext#security_level and #security_level=.
    
    * test/openssl/test_ssl.rb (test_security_level): Add test. ...but this
      doesn't actually test it. Because #security_level= is necessary in
      order to run other tests on OpenSSL 1.1.0, go without tests for now.
      Will fix after converting SSLContext#key= and #cert= to normal methods.

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


More information about the ruby-cvs mailing list