[ruby-cvs:62445] rhe:r55282 (trunk): openssl: check existence of RAND_pseudo_bytes()

rhe at ruby-lang.org rhe at ruby-lang.org
Sun Jun 5 21:38:34 JST 2016


rhe	2016-06-05 21:38:34 +0900 (Sun, 05 Jun 2016)

  New Revision: 55282

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

  Log:
    openssl: check existence of RAND_pseudo_bytes()
    
    * ext/openssl/extconf.rb: Check if RAND_pseudo_bytes() is usable. It is
      marked as deprecated in OpenSSL 1.1.0.
      [ruby-core:75225] [Feature #12324]
    
    * ext/openssl/ossl_rand.c: Disable Random.pseudo_bytes if
      RAND_pseudo_bytes() is unavailable.
    
    * test/openssl/test_random.rb: Don't test Random.pseudo_bytes if not
      defined.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/extconf.rb
    trunk/ext/openssl/ossl_rand.c
    trunk/test/openssl/test_random.rb


More information about the ruby-cvs mailing list