We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00eb352 commit 08e172bCopy full SHA for 08e172b
1 file changed
pkix/src/test/java/org/bouncycastle/openssl/test/ParserTest.java
@@ -639,10 +639,14 @@ private void doParseAttrECKeyTest()
639
throws Exception
640
{
641
// EC private key extremely dodgy attributes.
642
+ System.setProperty("org.bouncycastle.asn1.max_cons_depth", "45");
643
+
644
PEMParser pemRd = openPEMResource("ec_attr_key.pem");
645
646
PEMKeyPair kp = (PEMKeyPair)pemRd.readObject();
647
648
+ System.clearProperty("org.bouncycastle.asn1.max_cons_depth");
649
650
isTrue(kp.getPublicKeyInfo() == null);
651
}
652
0 commit comments