We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#!/usr/bin/env ruby puts RUBY_ENGINE require "rubygems" require "openssl" require "base64" asn = "\x00\x04".b asn.prepend "\x03#{asn.bytesize.chr}" pp asn bs = OpenSSL::ASN1.decode(asn) pp bs pp bs.to_der raise unless bs.to_der == asn
on mri
"\x03\x02\x00\x04" #<OpenSSL::ASN1::BitString:0x000000011eac7758 @indefinite_length=false, @tag=3, @tag_class=:UNIVERSAL, @tagging=nil, @unused_bits=0, @value="\x04"> "\x03\x02\x00\x04"
on jruby
"\u0003\u0002\u0000\u0004" #<OpenSSL::ASN1::BitString:0xdbda472 @indefinite_length=false, @tag=3, @tag_class=:UNIVERSAL, @tagging=nil, @unused_bits=0, @value="\x04"> "\x03\x02\x02\x04" RuntimeError: No current exception <main> at Untitled 3.rb:16
The text was updated successfully, but these errors were encountered:
No branches or pull requests
on mri
on jruby
The text was updated successfully, but these errors were encountered: