mirror of
https://codeberg.org/PGPainless/cert-d-pgpainless.git
synced 2025-09-10 02:39:45 +02:00
Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
f061b076dc | |||
2050450c6e | |||
4001e4d6c7 | |||
5b44f91ffb | |||
3f4fddfa7b | |||
9c61b6353f | |||
dd0a56147d | |||
3ded66c339 | |||
97fe547649 | |||
c8bf6c5f83 |
4 changed files with 18 additions and 10 deletions
|
@ -5,6 +5,13 @@ SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
# Cert-D-PGPainless Changelog
|
# Cert-D-PGPainless Changelog
|
||||||
|
|
||||||
|
## 0.2.2
|
||||||
|
- Bump `pgpainless-core` to `1.5.6`
|
||||||
|
- Bump `cert-d-java` to `0.2.2`
|
||||||
|
|
||||||
|
## 0.2.1
|
||||||
|
- Bump `pgpainless-core` to `1.3.12`
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
- `get`: Apply `toLowerCase()` to fingerprints
|
- `get`: Apply `toLowerCase()` to fingerprints
|
||||||
- Use BCs `PGPPublicKeyRing.join(first, second)` method to properly merge certificates
|
- Use BCs `PGPPublicKeyRing.join(first, second)` method to properly merge certificates
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
package pgp.cert_d.cli.commands;
|
package pgp.cert_d.cli.commands;
|
||||||
|
|
||||||
import org.bouncycastle.openpgp.PGPException;
|
|
||||||
import org.bouncycastle.openpgp.PGPPublicKeyRing;
|
import org.bouncycastle.openpgp.PGPPublicKeyRing;
|
||||||
import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
|
import org.bouncycastle.openpgp.PGPPublicKeyRingCollection;
|
||||||
import org.pgpainless.PGPainless;
|
import org.pgpainless.PGPainless;
|
||||||
|
@ -46,9 +45,6 @@ public class Import implements Runnable {
|
||||||
} catch (BadDataException e) {
|
} catch (BadDataException e) {
|
||||||
LOGGER.error("Certificate contains bad data.", e);
|
LOGGER.error("Certificate contains bad data.", e);
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
} catch (PGPException e) {
|
|
||||||
LOGGER.error("PGP Exception.", e);
|
|
||||||
System.exit(-1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,13 @@ public class KeyMaterialReader implements KeyMaterialReaderBackend {
|
||||||
try {
|
try {
|
||||||
keyMaterial = PGPainless.readKeyRing().keyRing(data);
|
keyMaterial = PGPainless.readKeyRing().keyRing(data);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
if (e.getMessage().contains("unknown object in stream") ||
|
String msg = e.getMessage();
|
||||||
e.getMessage().contains("unexpected end of file in armored stream.")) {
|
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();
|
throw new BadDataException();
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
ext {
|
ext {
|
||||||
shortVersion = '0.2.0'
|
shortVersion = '0.2.3'
|
||||||
isSnapshot = false
|
isSnapshot = true
|
||||||
minAndroidSdk = 10
|
minAndroidSdk = 10
|
||||||
javaSourceCompatibility = 1.8
|
javaSourceCompatibility = 1.8
|
||||||
slf4jVersion = '1.7.36'
|
slf4jVersion = '1.7.36'
|
||||||
logbackVersion = '1.2.11'
|
logbackVersion = '1.2.11'
|
||||||
junitVersion = '5.8.2'
|
junitVersion = '5.8.2'
|
||||||
mockitoVersion = '4.5.1'
|
mockitoVersion = '4.5.1'
|
||||||
pgpainlessVersion = '1.3.5'
|
pgpainlessVersion = '1.5.6'
|
||||||
pgpCertDJavaVersion = '0.2.1'
|
pgpCertDJavaVersion = '0.2.2'
|
||||||
picocliVersion = '4.6.3'
|
picocliVersion = '4.6.3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue