1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-14 12:49:39 +02:00

Compare commits

...

2 commits
main ... 1.0.5

4 changed files with 10 additions and 2 deletions

View file

@ -5,6 +5,9 @@ SPDX-License-Identifier: CC0-1.0
# PGPainless Changelog # PGPainless Changelog
## 1.0.5
- Security: Fix `KeyRingInfo.getValidAndExpiredUserIds()` accidentally including unbound user-ids
## 1.0.4 ## 1.0.4
- Yet another patch for faulty ASCII armor detection 😒 - Yet another patch for faulty ASCII armor detection 😒

View file

@ -186,7 +186,7 @@ repositories {
} }
dependencies { dependencies {
implementation 'org.pgpainless:pgpainless-core:1.0.4' implementation 'org.pgpainless:pgpainless-core:1.0.5'
} }
``` ```

View file

@ -346,6 +346,11 @@ public class KeyRingInfo {
PGPSignature certification = signatures.userIdCertifications.get(userId); PGPSignature certification = signatures.userIdCertifications.get(userId);
PGPSignature revocation = signatures.userIdRevocations.get(userId); PGPSignature revocation = signatures.userIdRevocations.get(userId);
// Unbound user-id
if (certification == null) {
continue;
}
// Not revoked -> valid // Not revoked -> valid
if (revocation == null) { if (revocation == null) {
probablyExpired.add(userId); probablyExpired.add(userId);

View file

@ -5,7 +5,7 @@
allprojects { allprojects {
ext { ext {
shortVersion = '1.0.5' shortVersion = '1.0.5'
isSnapshot = true isSnapshot = false
pgpainlessMinAndroidSdk = 10 pgpainlessMinAndroidSdk = 10
javaSourceCompatibility = 1.8 javaSourceCompatibility = 1.8
bouncyCastleVersion = '1.70' bouncyCastleVersion = '1.70'