Skip to content

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

Closed
@segiddins

Description

@segiddins
#!/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions