summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/__init__.py
diff options
context:
space:
mode:
authorZara Gebru <zgebru@thoughtworks.com>2016-05-24 16:10:40 +0200
committerZara Gebru <zgebru@thoughtworks.com>2016-05-24 17:26:48 +0200
commit50f7d3a976c3867a17bc3da9e9873fa179b43f82 (patch)
tree78ebafdac5e889eae8998ec9f13e2b06aa68795d /src/leap/keymanager/__init__.py
parentfe46507c44fbfb9c8ed72799d5e8bfb0ac32a10c (diff)
Issue #287: add tests for binary key and refactor
Diffstat (limited to 'src/leap/keymanager/__init__.py')
-rw-r--r--src/leap/keymanager/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/keymanager/__init__.py b/src/leap/keymanager/__init__.py
index 1106c23..194a4ee 100644
--- a/src/leap/keymanager/__init__.py
+++ b/src/leap/keymanager/__init__.py
@@ -831,7 +831,7 @@ class KeyManager(object):
self._assert_supported_key_type(ktype)
_keys = self._wrapper_map[ktype]
- pubkey, privkey = _keys.parse_ascii_key(key, address)
+ pubkey, privkey = _keys.parse_key(key, address)
if pubkey is None:
return defer.fail(KeyNotFound(key))
@@ -875,7 +875,7 @@ class KeyManager(object):
ascii_content = yield self._get_with_combined_ca_bundle(uri)
# XXX parse binary keys
- pubkey, _ = _keys.parse_ascii_key(ascii_content, address)
+ pubkey, _ = _keys.parse_key(ascii_content, address)
if pubkey is None:
raise KeyNotFound(uri)