Skip to content

Commit eca7e1a

Browse files
committed
proper ASN1 application specific decoding
... using BC 1.61
1 parent 197b840 commit eca7e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jruby/ext/openssl/ASN1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,8 @@ else if ( obj instanceof DERBMPString ) {
10981098
return ASN1.getClass("ASN1Data").newInstance(context, new IRubyObject[] { valArr, tag, tag_class }, Block.NULL_BLOCK);
10991099
}
11001100

1101-
if ( obj instanceof DERApplicationSpecific ) {
1102-
final DERApplicationSpecific appSpecific = (DERApplicationSpecific) obj;
1101+
if ( obj instanceof ASN1ApplicationSpecific ) {
1102+
final ASN1ApplicationSpecific appSpecific = (ASN1ApplicationSpecific) obj;
11031103
IRubyObject tag = runtime.newFixnum( appSpecific.getApplicationTag() );
11041104
IRubyObject tag_class = runtime.newSymbol("APPLICATION");
11051105
final ASN1Sequence sequence = (ASN1Sequence) appSpecific.getObject(SEQUENCE);

0 commit comments

Comments
 (0)