aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/wrapper.py
diff options
context:
space:
mode:
authorJ08nY2017-07-11 00:10:11 +0200
committerJ08nY2017-07-11 00:10:11 +0200
commited5fc4825fd56c4ec9b3e4c07554977363c55bc7 (patch)
tree31e89ee6fce56d5dfd7b00797697eebe051c912b /src/mailman_pgp/pgp/wrapper.py
parent3fdc4dfc1f1d2a2f8c9ca1781d54a11166894890 (diff)
downloadmailman-pgp-ed5fc4825fd56c4ec9b3e4c07554977363c55bc7.tar.gz
mailman-pgp-ed5fc4825fd56c4ec9b3e4c07554977363c55bc7.tar.zst
mailman-pgp-ed5fc4825fd56c4ec9b3e4c07554977363c55bc7.zip
Diffstat (limited to 'src/mailman_pgp/pgp/wrapper.py')
-rw-r--r--src/mailman_pgp/pgp/wrapper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py
index fcbec0e..6e8a8f9 100644
--- a/src/mailman_pgp/pgp/wrapper.py
+++ b/src/mailman_pgp/pgp/wrapper.py
@@ -80,7 +80,10 @@ class PGPWrapper():
yield from self.inline.verify(key)
def verifies(self, key):
- return all(bool(verification) for verification in self.verify(key))
+ return all(bool(verification) and
+ all(not sigsubj.signature.is_expired
+ for sigsubj in verification.good_signatures) for
+ verification in self.verify(key))
def is_encrypted(self):
return self.mime.is_encrypted() or self.inline.is_encrypted()