Commit 0e68cf7
committed
(maint) Simply to_utf8 monkey patch
Ruby 2.5.0 supports OpenSSL::X509::Name#to_utf8, but jruby-openssl does not. So
simplify the monkey patch for JRuby and continue to only use RFC2253 format,
because masking off ~ASN1_STRFLGS_ESC_MSB produces the wrong output:
dn = OpenSSL::X509::Name.parse('/DC=com').to_s(OpenSSL::X509::Name::RFC2253 & ~4)
=> "/DC=com"
dn = OpenSSL::X509::Name.parse('/DC=com').to_s(OpenSSL::X509::Name::RFC2253)
=> "DC=com"1 parent 8ac279d commit 0e68cf7
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 93 | | |
102 | 94 | | |
103 | | - | |
| 95 | + | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
| |||
0 commit comments