Skip check for revoked subkeys

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-03-12 15:41:36 +01:00
parent 4ac58861c3
commit ddfefb7ee1
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

6
gpg.go
View file

@ -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
} }