mirror of
https://github.com/Luzifer/mondash-checkgpg.git
synced 2024-12-20 11:21:17 +00:00
Skip check for revoked subkeys
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4ac58861c3
commit
ddfefb7ee1
1 changed files with 6 additions and 0 deletions
6
gpg.go
6
gpg.go
|
@ -119,6 +119,12 @@ func processKey(ctx context.Context, key string) (keyID, message string, status
|
||||||
|
|
||||||
for _, sk := range e.Subkeys {
|
for _, sk := range e.Subkeys {
|
||||||
if sk.Sig.KeyLifetimeSecs == nil {
|
if sk.Sig.KeyLifetimeSecs == nil {
|
||||||
|
// No lifetime assigned to that signature: Ignore that key
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if sk.Revoked(time.Now()) {
|
||||||
|
// Subkey has been revoked, we don't check that one
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue