#!/usr/bin/env ruby
require "openssl"
oid = OpenSSL::ASN1::ObjectId.new("2.5.29.14")
pp oid
pp oid.long_name
pp oid.short_name
pp oid == oid
oid = OpenSSL::ASN1::ObjectId.new("1.3.6.1.4.1.57264.1.8")
pp oid
pp oid.long_name
pp oid.short_name
pp oid == oid
outputs
when I would expect both oids to compare equal. I am unsure why
OBJ_txt2nid
is being used instead of comparing the underlyingoid
valueon 3.2.0 OpenSSL 3.2.0 23 Nov 2023