Project

General

Profile

Actions

Feature #5787

closed

OpenSSL::X509::Name#to_a Improvement (Patch Attached)

Added by reaperhulk (Paul Kehrer) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:<unknown>]

Description

In ruby 1.8/1.9/trunk the OpenSSL::X509::Name#to_a method attempts to map OIDs to short names. If an OID has no associated shortname this causes it to return the string "UNDEF". It would be much more useful if it returned the OID in this situation. I've written a patch and test for the patch and attached it to this bug in unified diff format.

You can also see the change at https://github.com/reaperhulk/ruby/commit/ff74d5c496fc6e71daa793c5baf7a24b0f2e7f98


Files

name-fix.diff (2.7 KB) name-fix.diff reaperhulk (Paul Kehrer), 12/22/2011 03:30 AM
name-fix-v2.diff (2.6 KB) name-fix-v2.diff reaperhulk (Paul Kehrer), 12/22/2011 05:13 AM

Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #5983: Please backport r34481Closed02/08/2012Actions
Actions

Also available in: Atom PDF