File: bouncycastle-1.51.patch

package info (click to toggle)
libitext5-java 5.5.6-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 74,448 kB
  • ctags: 17,424
  • sloc: xml: 254,440; java: 117,100; makefile: 6
file content (31 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Markus Koschany <apo@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 {