summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-04-26 09:59:31 -0300
committerdrebs <drebs@leap.se>2016-04-26 22:40:21 -0300
commitaf692e04c62b374c197d3ff45935ece5a7e100c1 (patch)
tree641e0b85df7f6f59b6a4090a25a1cc32073cef18 /client/src/leap/soledad
parentc634874aeeb4a9950e77ed28c8b8e643246e6bbd (diff)
[refactor] remove old code for enlarging secrets
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r--client/src/leap/soledad/client/secrets.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/client/src/leap/soledad/client/secrets.py b/client/src/leap/soledad/client/secrets.py
index 16487572..714b2dfe 100644
--- a/client/src/leap/soledad/client/secrets.py
+++ b/client/src/leap/soledad/client/secrets.py
@@ -253,18 +253,6 @@ class SoledadSecrets(object):
content = json.loads(f.read())
_, active_secret = self._import_recovery_document(content)
self._maybe_set_active_secret(active_secret)
- # enlarge secret if needed
- enlarged = False
- if len(self._secrets[self._secret_id]) < self.GEN_SECRET_LENGTH:
- gen_len = self.GEN_SECRET_LENGTH \
- - len(self._secrets[self._secret_id])
- new_piece = os.urandom(gen_len)
- self._secrets[self._secret_id] += new_piece
- enlarged = True
- # store and save in shared db if needed
- if enlarged:
- self._store_secrets()
- self._put_secrets_in_shared_db()
def _download_crypto_secrets(self):
"""