diff options
| author | J08nY | 2017-07-11 00:10:11 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-11 00:10:11 +0200 |
| commit | ed5fc4825fd56c4ec9b3e4c07554977363c55bc7 (patch) | |
| tree | 31e89ee6fce56d5dfd7b00797697eebe051c912b /src/mailman_pgp/pgp/wrapper.py | |
| parent | 3fdc4dfc1f1d2a2f8c9ca1781d54a11166894890 (diff) | |
| download | mailman-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.py | 5 |
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() |
