[ruby-cvs:62508] rhe:r55344 (trunk): openssl: use ASN1_ENUMERATED_to_BN() if needed

rhe at ruby-lang.org rhe at ruby-lang.org
Thu Jun 9 21:42:08 JST 2016


rhe	2016-06-09 21:42:08 +0900 (Thu, 09 Jun 2016)

  New Revision: 55344

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

  Log:
    openssl: use ASN1_ENUMERATED_to_BN() if needed
    
    * ext/openssl/ossl_asn1.c (asn1integer_to_num): Use
      ASN1_ENUMERATED_to_BN() to convert an ASN1_ENUMERATED to a BN.
      Starting from OpenSSL 1.1.0, ASN1_INTEGER_to_BN() rejects
      non-ASN1_INTEGER objects. The format of INTEGER and ENUMERATED are
      almost identical so they behaved in the same way in OpenSSL <= 1.0.2.
      [ruby-core:75225] [Feature #12324]
    
    * test/openssl/test_asn1.rb (test_decode_enumerated): Test that it
      works.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_asn1.c
    trunk/test/openssl/test_asn1.rb


More information about the ruby-cvs mailing list