jruby / jruby-openssl

JRuby's OpenSSL gem
http://www.jruby.org
Other
47 stars 80 forks source link

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

Open segiddins opened 4 months ago

segiddins commented 4 months ago
#!/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
headius commented 4 months ago

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