Skip to content
New issue

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

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

Closed
segiddins opened this issue Jun 26, 2024 · 1 comment
Closed

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

segiddins opened this issue Jun 26, 2024 · 1 comment

Comments

@segiddins
Copy link

#!/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
Copy link
Member

headius commented Jun 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants