Skip to content
  • Kazuki Yamaguchi's avatar
    f9843bc4
    openssl: use ASN1_ENUMERATED_to_BN() if needed · f9843bc4
    Kazuki Yamaguchi authored
    * 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.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    f9843bc4
    openssl: use ASN1_ENUMERATED_to_BN() if needed
    Kazuki Yamaguchi authored
    * 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.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Loading