1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-24 11:57:59 +01:00

Fix index per key-id for invalidated keys

This commit is contained in:
Paul Schaub 2023-07-11 00:51:00 +02:00
parent 7c202b6955
commit 41dfb269f1
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -127,7 +127,7 @@ class WebOfTrust(private val certificateStore: PGPCertificateStore) {
byFingerprint.putIfAbsent(certFingerprint, cert)
// index by key-ID
cert.validSubkeys.forEach {
cert.keys.publicKeys.forEach {
byKeyId.getOrPut(it.keyID) { mutableListOf() }.add(cert)
}