You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2022/06/02 21:14:35 UTC

[synapse] branch master updated: Update Bouncycastle

This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/synapse.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c0676130 Update Bouncycastle
1c0676130 is described below

commit 1c067613087de1d045bc4d02603210efb7f8d14c
Author: Andreas Veithen <an...@gmail.com>
AuthorDate: Thu Jun 2 21:14:02 2022 +0000

    Update Bouncycastle
---
 .../org/apache/synapse/transport/utils/sslcert/CRLVerifierTest.java   | 4 ++--
 pom.xml                                                               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/utils/sslcert/CRLVerifierTest.java b/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/utils/sslcert/CRLVerifierTest.java
index 358ae3698..12d5208ac 100644
--- a/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/utils/sslcert/CRLVerifierTest.java
+++ b/modules/transports/core/nhttp/src/test/java/org/apache/synapse/transport/utils/sslcert/CRLVerifierTest.java
@@ -21,7 +21,7 @@ package org.apache.synapse.transport.utils.sslcert;
 import junit.framework.TestCase;
 import org.apache.synapse.transport.utils.sslcert.crl.CRLCache;
 import org.apache.synapse.transport.utils.sslcert.crl.CRLVerifier;
-import org.bouncycastle.asn1.DERObjectIdentifier;
+import org.bouncycastle.asn1.ASN1ObjectIdentifier;
 import org.bouncycastle.asn1.x509.*;
 import org.bouncycastle.x509.X509V2CRLGenerator;
 import org.bouncycastle.x509.X509V3CertificateGenerator;
@@ -147,7 +147,7 @@ public class CRLVerifierTest extends TestCase {
         Utils utils = new Utils();
         X509V3CertificateGenerator certGen = utils.getUsableCertificateGenerator(caCert,
                 entityKey, serialNumber);
-        certGen.copyAndAddExtension(new DERObjectIdentifier(X509Extensions.CRLDistributionPoints
+        certGen.copyAndAddExtension(new ASN1ObjectIdentifier(X509Extensions.CRLDistributionPoints
                 .getId()), false, firstCertificate);
 
         return certGen.generateX509Certificate(caKey, "BC");
diff --git a/pom.xml b/pom.xml
index 678be9f2b..db39436a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1143,7 +1143,7 @@
         <snmp4j.version>2.5.4</snmp4j.version>
         <snmp4j.agent.version>2.5.3</snmp4j.agent.version>
         <rabbitmq.version>3.1.2</rabbitmq.version>
-        <bouncycastle.version>1.66</bouncycastle.version>
+        <bouncycastle.version>1.70</bouncycastle.version>
 
         <!-- dependencies of Synapse extensions module -->
         <wso2commons.version>1.2</wso2commons.version>