summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-09 22:09:03 -0200
committerdrebs <drebs@leap.se>2013-02-09 22:22:15 -0200
commit2a1f96729fb694257cab220022ea81731133dca6 (patch)
tree524ac41103501f45bfb884a5ebe8d3f0f6ccad4f /__init__.py
parentd139faf6bb7adcc4ea1e8dcafad38fbeccc552d8 (diff)
SQLCipher backend can sync with remote Leap HTTP target.
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/__init__.py b/__init__.py
index 6893c7a8..e11b8319 100644
--- a/__init__.py
+++ b/__init__.py
@@ -43,7 +43,8 @@ class Soledad(object):
# instantiate u1db
# TODO: verify if secret for sqlcipher should be the same as the one
# for symmetric encryption.
- self._db = sqlcipher.open(self.LOCAL_DB_PATH, True, self._secret)
+ self._db = sqlcipher.open(self.LOCAL_DB_PATH, True, self._secret,
+ soledad=self)
def close(self):
self._db.close()
@@ -213,6 +214,6 @@ class Soledad(object):
Synchronize the local encrypted database with LEAP server.
"""
# TODO: create authentication scheme for sync with server.
- return self._db.sync(url, creds=None, autocreate=True, soledad=self)
+ return self._db.sync(url, creds=None, autocreate=True)
__all__ = ['util']