File tree 2 files changed +7
-3
lines changed
prov/src/test/java/org/bouncycastle/jce/provider/test
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -532,17 +532,18 @@ private void testNoKeyUsageCRLSigner()
532
532
fail ("path should have failed" );
533
533
}
534
534
catch (CertPathValidatorException e )
535
- { e . printStackTrace ();
535
+ {
536
536
isTrue ("No CRLs found for issuer \" o=Certs 'r Us,c=XX\" " .equals (e .getMessage ()));
537
537
}
538
+
539
+ System .clearProperty ("org.bouncycastle.x509.allow_ca_without_crl_sign" );
538
540
}
539
541
540
542
public void performTest ()
541
543
throws Exception
542
544
{
543
- // constraintTest();
545
+ constraintTest ();
544
546
testNoKeyUsageCRLSigner ();
545
- System .exit (0 );
546
547
CertificateFactory cf = CertificateFactory .getInstance ("X.509" , "BC" );
547
548
548
549
// initialise CertStore
@@ -663,6 +664,8 @@ public void performTest()
663
664
}
664
665
}
665
666
667
+ System .clearProperty ("org.bouncycastle.x509.allow_ca_without_crl_sign" );
668
+
666
669
checkCircProcessing ();
667
670
checkPolicyProcessingAtDomainMatch ();
668
671
validateWithExtendedKeyUsage ();
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ public class SimpleTestTest
11
11
{
12
12
public void testJCE ()
13
13
{
14
+ System .setProperty ("org.bouncycastle.bks.enable_v1" , "true" );
14
15
15
16
if (Security .getProvider (BouncyCastleProvider .PROVIDER_NAME ) == null )
16
17
{
You can’t perform that action at this time.
0 commit comments