[ruby-cvs:63102] usa:r55937 (ruby_2_2): merge revision(s) 55047: [Backport #12441]

usa at ruby-lang.org usa at ruby-lang.org
Tue Aug 16 20:55:03 JST 2016


usa	2016-08-16 20:55:03 +0900 (Tue, 16 Aug 2016)

  New Revision: 55937

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

  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_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/ext/openssl/ossl_bn.c
    branches/ruby_2_2/test/openssl/test_bn.rb
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list