[ruby-cvs:63071] nagachika:r55906 (ruby_2_3): merge revision(s) 55047: [Backport #12441]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Aug 16 04:06:03 JST 2016


nagachika	2016-08-16 04:06:03 +0900 (Tue, 16 Aug 2016)

  New Revision: 55906

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

  Log:
    merge revision(s) 55047: [Backport #12441]
    
    * ext/openssl/ossl_bn.c (try_convert_to_bnptr): Extracted from
      GetBNPtr(). This doesn't raise exception but returns NULL on error.
      (GetBNPtr): Raise TypeError if conversion fails.
      (ossl_bn_eq): Implement BN#==.
      (ossl_bn_eql): #eql? should not raise TypeError even if the argument
      is not compatible with BN.
      (ossl_bn_hash): Implement BN#hash.
    
    * ext/openssl/ossl_bn.c (Init_ossl_bn): Define #== and #hash.
    
    * test/openssl/test_bn.rb: Test BN#eql?, #== and #hash

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/ext/openssl/ossl_bn.c
    branches/ruby_2_3/test/openssl/test_bn.rb
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list