Skip to content

Commit

Permalink
handle EXPKEYSIG and REVKEYSIG messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Folkinshteyn committed Mar 30, 2011
1 parent 423c64b commit 64a4721
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gnupg.py
Expand Up @@ -740,6 +740,14 @@ def handle_status(self, key, value):
# if we want to check for signatures with expired key,
# the relevant flag is EXPKEYSIG.
pass
elif key == "EXPKEYSIG":
# signed with expired key
self.valid = False
self.key_id = value.split()[0]
elif key == "REVKEYSIG":
# signed with revoked key
self.valid = False
self.key_id = value.split()[0]
else:
raise ValueError("Unknown status message: %r" % key)

Expand Down

0 comments on commit 64a4721

Please sign in to comment.