Closed HoneyryderChuck closed 5 months ago
I do not see the Sequence#[]
method available in recent Ruby, so it's likely a different issue in this case...
ruby -v -ropenssl -e 'pp ::OpenSSL::ASN1::Sequence([::OpenSSL::ASN1::Integer(111)])[0]'
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
-e:1:in `<main>': undefined method `[]' for #<OpenSSL::ASN1::Sequence:0x000077c90c9c6560 @tag=16, @value=[#<OpenSSL::ASN1::Integer:0x000077c90c9c6628 @tag=2, @value=111, @tagging=nil, @tag_class=:UNIVERSAL, @indefinite_length=false>], @tagging=nil, @tag_class=:UNIVERSAL, @indefinite_length=false> (NoMethodError)
pp ::OpenSSL::ASN1::Sequence([::OpenSSL::ASN1::Integer(111)])[0]
^^^
Coming from https://gitlab.com/honeyryderchuck/rodauth-oauth/-/jobs/3161911378
ASN1 sequences should behave like arrays.