[ruby-core:70771] [Ruby trunk - Bug #6703] openssl: using a newly registered extension

From: zzak@...
Date: 2015-09-13 03:22:17 UTC
List: ruby-core #70771
Issue #6703 has been updated by Zachary Scott.

Assignee changed from Hiroshi Nakamura to openssl

----------------------------------------
Bug #6703: openssl: using a newly registered extension
https://bugs.ruby-lang.org/issues/6703#change-54151

* Author: Vincent Batts
* Status: Assigned
* Priority: Normal
* Assignee: openssl
* ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] 
* Backport: 
----------------------------------------
When registering a new ASN.1 extension OBJ_create(), it should make it available for OBJ_ln2nid() and OBJ_sn2nid() searches that are performed in OpenSSL::X509::ExtensionFactory.create_ext
I've attached a ruby case where this should work,
As well as a C sample where you can see it working.

p.s. I wish that OBJ_txt2nid was added to the functions used when searching for the nid

---Files--------------------------------
ossl_ext_bug.rb (317 Bytes)
o.c (574 Bytes)


-- 
https://bugs.ruby-lang.org/

In This Thread