Compare commits

...

4 commits

Author SHA1 Message Date
Paul Schaub 9c61b6353f
Cert-D-PGPainless 0.2.2-SNAPSHOT 2022-11-11 14:49:58 +01:00
Paul Schaub dd0a56147d
Cert-D-PGPainless 0.2.1 2022-11-11 14:37:47 +01:00
Paul Schaub 3ded66c339
Update CHANGELOG 2022-11-11 14:35:43 +01:00
Paul Schaub 97fe547649
Bump PGPainless to 1.3.12 2022-11-11 14:33:17 +01:00
3 changed files with 12 additions and 4 deletions

View file

@ -5,6 +5,9 @@ SPDX-License-Identifier: CC0-1.0
# Cert-D-PGPainless Changelog
# 0.2.1
- Bump `pgpainless-core` to `1.3.12`
## 0.2.0
- `get`: Apply `toLowerCase()` to fingerprints
- Use BCs `PGPPublicKeyRing.join(first, second)` method to properly merge certificates

View file

@ -23,8 +23,13 @@ public class KeyMaterialReader implements KeyMaterialReaderBackend {
try {
keyMaterial = PGPainless.readKeyRing().keyRing(data);
} catch (IOException e) {
if (e.getMessage().contains("unknown object in stream") ||
e.getMessage().contains("unexpected end of file in armored stream.")) {
String msg = e.getMessage();
if (msg == null) {
throw e;
}
if (msg.contains("unknown object in stream") ||
msg.contains("unexpected end of file in armored stream.") ||
msg.contains("invalid header encountered")) {
throw new BadDataException();
} else {
throw e;

View file

@ -4,7 +4,7 @@
allprojects {
ext {
shortVersion = '0.2.1'
shortVersion = '0.2.2'
isSnapshot = true
minAndroidSdk = 10
javaSourceCompatibility = 1.8
@ -12,7 +12,7 @@ allprojects {
logbackVersion = '1.2.11'
junitVersion = '5.8.2'
mockitoVersion = '4.5.1'
pgpainlessVersion = '1.3.5'
pgpainlessVersion = '1.3.12'
pgpCertDJavaVersion = '0.2.1'
picocliVersion = '4.6.3'
}