summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-19 14:36:44 -0300
committerdrebs <drebs@leap.se>2013-02-19 14:36:44 -0300
commitfdc02ee65765b86bd7b2b0cd456c5c2ceee334c5 (patch)
tree4a80c0c93387250f89b250459d82999076bc7b3d /util.py
parentade0cea87cc72d92250ca1a03e661d760699dbdc (diff)
Add verification of existence of private key in Soledad.
Diffstat (limited to 'util.py')
-rw-r--r--util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.py b/util.py
index fe24df39..64c03daa 100644
--- a/util.py
+++ b/util.py
@@ -60,11 +60,11 @@ class GPGWrapper(gnupg.GPG):
options=options)
self.result_map['list-packets'] = ListPackets
- def find_key_by_email(self, email):
+ def find_key_by_email(self, email, secret=False):
"""
Find user's key based on their email.
"""
- for key in self.list_keys():
+ for key in self.list_keys(secret=secret):
for uid in key['uids']:
if re.search(email, uid):
return key