summaryrefslogtreecommitdiff
path: root/doc/ruby
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-11-19 01:41:35 +0900
committergit <svn-admin@ruby-lang.org>2025-11-22 16:48:13 +0000
commitdd489ee9c48fc8c2b499b80f3ebcd053de33bb0a (patch)
tree6bd14c253a20f008e987abaeac04026daa230652 /doc/ruby
parent424499dd10aa01b3d84957761b19dde63b28113c (diff)
[ruby/openssl] asn1: refactor converting ASN1_OBJECT to string
ruby/openssl exposes OIDs to Ruby as strings in many places, but the conversion logic has been duplicated and the behavior is inconsistent. There are mainly two patterns: - Returns the short name associated with the OID/NID, or the dotted decimal notation if it is unknown to OpenSSL. - Returns the long name, or the dotted decimal notation. These patterns are implemented using different OpenSSL APIs and that caused subtle differences. Add helper functions ossl_asn1obj_to_string() and ossl_asn1obj_to_string_long_name() to unify the logic. Also, document the current behaviors where it is not yet done. The inconsistency was likely unintentional, but since it dates back to the original implementations, standardizing it now would cause more issues than it resolves. https://github.com/ruby/openssl/commit/2ea36c21a4
Diffstat (limited to 'doc/ruby')
0 files changed, 0 insertions, 0 deletions