mirror of
https://codeberg.org/PGPainless/cert-d-pgpainless.git
synced 2025-09-09 10:19:48 +02:00
Bump PGPainless to 1.3.12
This commit is contained in:
parent
c8bf6c5f83
commit
97fe547649
2 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue