Skip to content

Commit

Permalink
compatibility updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Oct 5, 2015
1 parent 45e17ed commit 8e0462e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions ant/jdk13.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<exclude name="**/provider/config/PKCS12StoreParameter.java" />
</fileset>
<fileset dir="prov/src/main/java">
<exclude name="**/ec/ECUtils.java" />
<exclude name="**/ECPointUtil.java" />
<exclude name="**/ECNamedCurveSpec.java" />
<exclude name="**/LDAP*.java" />
Expand Down
1 change: 1 addition & 0 deletions ant/jdk14.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<exclude name="**/ValidateSignedMail.java"/>
</fileset>
<fileset dir="prov/src/main/java">
<exclude name="**/ec/ECUtils.java" />
<exclude name="**/ECPointUtil.java" />
<exclude name="**/ECNamedCurveSpec.java" />
<exclude name="**/BCEC*.java" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public EncryptedPrivateKeyInfo(
*/
public String getAlgName()
{
return infoObj.getEncryptionAlgorithm().getObjectId().getId();
return infoObj.getEncryptionAlgorithm().getAlgorithm().getId();
}

private AlgorithmParameters getParameters()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package org.bouncycastle.jce.provider.test.nist;

import java.security.Security;

import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

public class AllTests
extends TestCase
{
public static void main (String[] args)
{
junit.textui.TestRunner.run(suite());
}

public static Test suite()
{
TestSuite suite = new TestSuite("CertPath Tests");

suite.addTestSuite(NistCertPathTest.class);

return new BCTestSetup(suite);
}

static class BCTestSetup
extends TestSetup
{
public BCTestSetup(Test test)
{
super(test);
}

protected void setUp()
{
Security.addProvider(new BouncyCastleProvider());
}

protected void tearDown()
{
Security.removeProvider("BC");
}
}
}

0 comments on commit 8e0462e

Please sign in to comment.