We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd8ebe commit 337241cCopy full SHA for 337241c
src/main/java/org/jruby/ext/openssl/X509CRL.java
@@ -389,7 +389,11 @@ static void extensions_to_text(final ThreadContext context,
389
for ( int i = 0; i < exts.size(); i++ ) {
390
final X509Extension ext = exts.get(i);
391
final ASN1ObjectIdentifier oid = ext.getRealObjectID();
392
- final String no = ASN1.o2a(context.runtime, oid);
+ String no = ASN1.o2a(context.runtime, oid, true);
393
+ if (no == null) { // MRI here just appends the OID string
394
+ no = ASN1.oid2Sym(context.runtime, oid, true);
395
+ if (no == null) no = oid.toString();
396
+ }
397
text.append(S20,0,indent).append( no ).append(": ");
398
if ( ext.isRealCritical() ) text.append("critical");
399
text.append('\n');
0 commit comments