mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 12:27:58 +01:00
Fix index per key-id for invalidated keys
This commit is contained in:
parent
7c202b6955
commit
41dfb269f1
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class WebOfTrust(private val certificateStore: PGPCertificateStore) {
|
||||||
byFingerprint.putIfAbsent(certFingerprint, cert)
|
byFingerprint.putIfAbsent(certFingerprint, cert)
|
||||||
|
|
||||||
// index by key-ID
|
// index by key-ID
|
||||||
cert.validSubkeys.forEach {
|
cert.keys.publicKeys.forEach {
|
||||||
byKeyId.getOrPut(it.keyID) { mutableListOf() }.add(cert)
|
byKeyId.getOrPut(it.keyID) { mutableListOf() }.add(cert)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue