From 8bc2338463c6595b53d747e0a40da5879d82012a Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 1 Aug 2023 14:27:49 +0200 Subject: [PATCH] Bump BC to 1.76 --- pgpainless-sop/src/main/java/org/pgpainless/sop/KeyReader.java | 3 ++- version.gradle | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pgpainless-sop/src/main/java/org/pgpainless/sop/KeyReader.java b/pgpainless-sop/src/main/java/org/pgpainless/sop/KeyReader.java index 59515200..a2876a6e 100644 --- a/pgpainless-sop/src/main/java/org/pgpainless/sop/KeyReader.java +++ b/pgpainless-sop/src/main/java/org/pgpainless/sop/KeyReader.java @@ -48,7 +48,8 @@ class KeyReader { try { certs = PGPainless.readKeyRing().publicKeyRingCollection(certIn); } catch (IOException e) { - if (e.getMessage() != null && e.getMessage().startsWith("unknown object in stream:")) { + String msg = e.getMessage(); + if (msg != null && (msg.startsWith("unknown object in stream:") || msg.startsWith("invalid header encountered"))) { throw new SOPGPException.BadData(e); } throw e; diff --git a/version.gradle b/version.gradle index 2e0c2c23..532b0a3f 100644 --- a/version.gradle +++ b/version.gradle @@ -8,7 +8,7 @@ allprojects { isSnapshot = true pgpainlessMinAndroidSdk = 10 javaSourceCompatibility = 1.8 - bouncyCastleVersion = '1.75' + bouncyCastleVersion = '1.76' bouncyPgVersion = bouncyCastleVersion junitVersion = '5.8.2' logbackVersion = '1.2.11'