Skip to content

Commit 8b0aba6

Browse files
committed
[fix] handle BC 1.61 compatibility
1 parent 93473f6 commit 8b0aba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/ext/openssl/x509store/PEMInputOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ public static void writeX509Request(Writer _out, PKCS10Request obj) throws IOExc
992992

993993
public static void writeDSAPrivateKey(Writer _out, DSAPrivateKey obj, CipherSpec cipher, char[] passwd) throws IOException {
994994
BufferedWriter out = makeBuffered(_out);
995-
PrivateKeyInfo info = new PrivateKeyInfo((ASN1Sequence) new ASN1InputStream(getEncoded(obj)).readObject());
995+
PrivateKeyInfo info = PrivateKeyInfo.getInstance(new ASN1InputStream(getEncoded(obj)).readObject());
996996
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
997997
ASN1OutputStream aOut = new ASN1OutputStream(bOut);
998998

0 commit comments

Comments
 (0)