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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py
index 2b18134..bc0a3c6 100644
--- a/src/mailman_pgp/pgp/wrapper.py
+++ b/src/mailman_pgp/pgp/wrapper.py
@@ -79,6 +79,9 @@ class PGPWrapper():
elif self.is_inline_signed():
yield from self.inline.verify(key)
+ def verifies(self, key):
+ return all(bool(verification) for verification in self.verify(key))
+
def is_mime_encrypted(self):
return self.mime.is_encrypted()