File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1695,13 +1695,13 @@ ASN1Encodable toASN1(final ThreadContext context) {
1695
1695
}
1696
1696
1697
1697
if ( type == DERGeneralString .class ) {
1698
- return new DERGeneralString ( val .asString ().toString () );
1698
+ return ASN1GeneralString . getInstance ( val .asString ().getBytes () );
1699
1699
}
1700
1700
if ( type == DERVisibleString .class ) {
1701
- return new DERVisibleString ( val .asString ().toString () );
1701
+ return ASN1VisibleString . getInstance ( val .asString ().getBytes () );
1702
1702
}
1703
1703
if ( type == DERNumericString .class ) {
1704
- return new DERNumericString ( val .asString ().toString () );
1704
+ return ASN1NumericString . getInstance ( val .asString ().getBytes () );
1705
1705
}
1706
1706
1707
1707
if ( val instanceof RubyString ) {
You can’t perform that action at this time.
0 commit comments