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 {
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;

View File

@ -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'