From df64598b127ad910865f31c2e939e8faeff18f17 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Thu, 29 Aug 2019 23:22:47 +0000 Subject: [PATCH] upgrade bouncycastle git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866108 13f79535-47bb-0310-9956-ffa450edef68 --- .classpath | 4 ++-- build.gradle | 4 ++-- build.xml | 17 +++++++++-------- sonar/ooxml/pom.xml | 4 ++-- .../poi/poifs/crypt/dsig/SignatureInfo.java | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.classpath b/.classpath index 2b8a9f0990..e486e2df9d 100644 --- a/.classpath +++ b/.classpath @@ -28,8 +28,8 @@ - - + + diff --git a/build.gradle b/build.gradle index 2c8b15ff65..dd5c360b2f 100644 --- a/build.gradle +++ b/build.gradle @@ -235,7 +235,7 @@ project('ooxml') { compile 'org.apache.commons:commons-math3:3.6.1' compile 'org.apache.commons:commons-compress:1.18' compile 'org.apache.santuario:xmlsec:2.1.2' - compile 'org.bouncycastle:bcpkix-jdk15on:1.61' + compile 'org.bouncycastle:bcpkix-jdk15on:1.62' compile 'com.github.virtuald:curvesapi:1.06' // compile only, don't add it to our dist as it blows up the size @@ -252,7 +252,7 @@ project('ooxml') { compile files('../../ooxml-lib/ooxml-security-1.1.jar') testCompile 'junit:junit:4.12' - testCompile 'org.mockito:mockito-core:2.23.4' + testCompile 'org.mockito:mockito-core:3.0.0' testCompile 'org.xmlunit:xmlunit-core:2.5.1' testCompile 'org.reflections:reflections:0.9.11' testCompile project(path: ':main', configuration: 'tests') diff --git a/build.xml b/build.xml index 8604752e5a..cf3265475e 100644 --- a/build.xml +++ b/build.xml @@ -222,10 +222,10 @@ under the License. - - - - + + + + @@ -322,10 +322,10 @@ under the License. - - - - + + + + @@ -707,6 +707,7 @@ under the License. + diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index f7e5e0c0ed..4737fd05ac 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -137,12 +137,12 @@ org.bouncycastle bcpkix-jdk15on - 1.61 + 1.62 org.bouncycastle bcprov-jdk15on - 1.61 + 1.62 org.apache.santuario diff --git a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java index 32dc8db2e4..7fbed2459d 100644 --- a/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java +++ b/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureInfo.java @@ -149,7 +149,7 @@ import org.w3c.dom.events.EventTarget; *

To use SignatureInfo and its sibling classes, you'll need to have the following libs * in the classpath:

*
    - *
  • BouncyCastle bcpkix and bcprov (tested against 1.61)
  • + *
  • BouncyCastle bcpkix and bcprov (tested against 1.62)
  • *
  • Apache Santuario "xmlsec" (tested against 2.1.2)
  • *
  • and slf4j-api (tested against 1.7.26)
  • *
-- 2.39.5