1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-16 00:24:51 +02:00

Bump BC to 1.76

This commit is contained in:
Paul Schaub 2023-08-01 14:27:49 +02:00
parent 789fa507d1
commit 8bc2338463
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,8 @@ class KeyReader {
try { try {
certs = PGPainless.readKeyRing().publicKeyRingCollection(certIn); certs = PGPainless.readKeyRing().publicKeyRingCollection(certIn);
} catch (IOException e) { } 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 new SOPGPException.BadData(e);
} }
throw e; throw e;

View file

@ -8,7 +8,7 @@ allprojects {
isSnapshot = true isSnapshot = true
pgpainlessMinAndroidSdk = 10 pgpainlessMinAndroidSdk = 10
javaSourceCompatibility = 1.8 javaSourceCompatibility = 1.8
bouncyCastleVersion = '1.75' bouncyCastleVersion = '1.76'
bouncyPgVersion = bouncyCastleVersion bouncyPgVersion = bouncyCastleVersion
junitVersion = '5.8.2' junitVersion = '5.8.2'
logbackVersion = '1.2.11' logbackVersion = '1.2.11'