[libitext5-java] 01/03: Add bouncycastle-1.51.patch

Markus Koschany apo-guest at moszumanska.debian.org
Tue Dec 1 21:02:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository libitext5-java.

commit 11982f2800bb2d203bc67bd5b5e11c099a95d324
Author: Markus Koschany <apo at debian.org>
Date:   Tue Dec 1 22:01:08 2015 +0100

    Add bouncycastle-1.51.patch
---
 debian/patches/bouncycastle-1.51.patch | 31 +++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/bouncycastle-1.51.patch b/debian/patches/bouncycastle-1.51.patch
new file mode 100644
index 0000000..6835779
--- /dev/null
+++ b/debian/patches/bouncycastle-1.51.patch
@@ -0,0 +1,31 @@
+From: Markus Koschany <apo at debian.org>
+Date: Tue, 1 Dec 2015 21:36:16 +0100
+Subject: bouncycastle 1.51
+
+Fix FTBFS with bouncycastle 1.51
+Forwarded: no
+---
+ .../java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java    | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java b/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java
+index 9d09eaa..16d13c2 100644
+--- a/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java
++++ b/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java
+@@ -70,6 +70,7 @@ import org.bouncycastle.cert.ocsp.OCSPReq;
+ import org.bouncycastle.cert.ocsp.OCSPReqBuilder;
+ import org.bouncycastle.cert.ocsp.OCSPResp;
+ import org.bouncycastle.cert.ocsp.SingleResp;
++import org.bouncycastle.cert.ocsp.RevokedStatus;
+ import org.bouncycastle.operator.OperatorException;
+ import org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder;
+ 
+@@ -183,7 +184,7 @@ public class OcspClientBouncyCastle implements OcspClient {
+                     if (status == CertificateStatus.GOOD) {
+                         return basicResponse.getEncoded();
+                     }
+-                    else if (status instanceof org.bouncycastle.ocsp.RevokedStatus) {
++                    else if (status instanceof org.bouncycastle.cert.ocsp.RevokedStatus) {
+                         throw new IOException(MessageLocalization.getComposedMessage("ocsp.status.is.revoked"));
+                     }
+                     else {
diff --git a/debian/patches/series b/debian/patches/series
index add0b99..2088184 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ utf8.patch
 remove-javadoc-page-tracking.patch
 skip_test_requiring_online_connection.patch
 skip_test_requiring_xserver.patch
+bouncycastle-1.51.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libitext5-java.git



More information about the pkg-java-commits mailing list