From ddfefb7ee1f6d4d77cdbd96217b3d5c333478e70 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 12 Mar 2022 15:41:36 +0100 Subject: [PATCH] Skip check for revoked subkeys Signed-off-by: Knut Ahlers --- gpg.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpg.go b/gpg.go index 5ff3ebb..c17bf4c 100644 --- a/gpg.go +++ b/gpg.go @@ -119,6 +119,12 @@ func processKey(ctx context.Context, key string) (keyID, message string, status for _, sk := range e.Subkeys { 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 }