jruby-openssl icon indicating copy to clipboard operation
jruby-openssl copied to clipboard

OpenSSL::ASN1::ObjectId does not implement ==

Open segiddins opened this issue 1 year ago • 1 comments

#!/usr/bin/env ruby

require "rubygems"
require "openssl"

puts OpenSSL::VERSION

oid = OpenSSL::ASN1::ObjectId.new("2.5.29.14")

pp oid

pp oid == OpenSSL::ASN1::ObjectId.new("2.5.29.14")

prints true on MRI, and the following on JRuby

2.2.1
#<OpenSSL::ASN1::ObjectId:0x7fd3fd06 @indefinite_length=false, @tag=6, @tag_class=:UNIVERSAL, @tagging=nil, @value="subjectKeyIdentifier">
false

segiddins avatar Jun 26 '24 17:06 segiddins

Hmm doesn't seem like it should be difficult to implement.

headius avatar Jun 26 '24 21:06 headius