aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/pgp/wrapper.py')
-rw-r--r--src/mailman_pgp/pgp/wrapper.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py
index f5cc8e1..cbfa7f2 100644
--- a/src/mailman_pgp/pgp/wrapper.py
+++ b/src/mailman_pgp/pgp/wrapper.py
@@ -20,6 +20,7 @@ from public import public
from mailman_pgp.pgp.inline import InlineWrapper
from mailman_pgp.pgp.mime import MIMEWrapper
+from mailman_pgp.utils.pgp import verifies
@public
@@ -108,10 +109,7 @@ class PGPWrapper():
yield from self.inline.verify(key)
def verifies(self, key):
- return all(bool(verification) and
- all(not sigsubj.signature.is_expired
- for sigsubj in verification.good_signatures) for
- verification in self.verify(key))
+ return verifies(self.verify(key))
def is_encrypted(self):
"""