summaryrefslogtreecommitdiff
path: root/scripts/db_access
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2014-07-14 19:54:43 -0300
committerdrebs <drebs@leap.se>2014-08-01 12:53:21 -0300
commit6183ad313298de08e05c31c5f18f133361cd803b (patch)
treee2a6eb96db798c1babd528b116414bf9a7c023fe /scripts/db_access
parentc8bda65e0029999e1c2587b74d490aee2d05137e (diff)
Make client db access script defer decryption.
Diffstat (limited to 'scripts/db_access')
-rw-r--r--scripts/db_access/client_side_db.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/db_access/client_side_db.py b/scripts/db_access/client_side_db.py
index 6c456c41..1c4f3754 100644
--- a/scripts/db_access/client_side_db.py
+++ b/scripts/db_access/client_side_db.py
@@ -26,7 +26,7 @@ from util import ValidateUserHandle
# create a logger
logger = logging.getLogger(__name__)
LOG_FORMAT = '%(asctime)s %(message)s'
-logging.basicConfig(format=LOG_FORMAT, level=logging.INFO)
+logging.basicConfig(format=LOG_FORMAT, level=logging.DEBUG)
safe_unhexlify = lambda x: binascii.unhexlify(x) if (
@@ -119,7 +119,8 @@ def get_soledad_instance(username, provider, passphrase, basedir):
local_db_path=local_db_path,
server_url=server_url,
cert_file=cert_file,
- auth_token=token)
+ auth_token=token,
+ defer_encryption=True)
# main program