From 7c659fed65f08f2b52f0320c99a456679749e3f3 Mon Sep 17 00:00:00 2001 From: kali Date: Fri, 5 Oct 2012 09:30:50 +0900 Subject: use keyring to store user password using a quite lame cryptedfile by the moment until dbus bug makes gnome-keyring usable again or we come up with the encrypted database solution. we might want to explore the option of using this python-keyring with the different native backends for win and macosx. for now: we generate a random secret that we store in the qsettings file. so, the whole thing is just to avoid plaintext stuff. for this, we could have done rot13, haha. --- src/leap/crypto/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/leap/crypto/__init__.py (limited to 'src/leap/crypto/__init__.py') diff --git a/src/leap/crypto/__init__.py b/src/leap/crypto/__init__.py new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3 From 68af5b2f807ac8acd9525d46d37cfd2a28a06b47 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 16 Jan 2013 23:33:46 +0900 Subject: fix ctypes dependency discovery for libgnutls --- src/leap/crypto/__init__.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/leap/crypto/__init__.py') diff --git a/src/leap/crypto/__init__.py b/src/leap/crypto/__init__.py index e69de29b..8df3fc6c 100644 --- a/src/leap/crypto/__init__.py +++ b/src/leap/crypto/__init__.py @@ -0,0 +1,26 @@ +""" +DEBUG! ----------- gnutls lib: libgnutls.26.dylib +DEBUG! ----------- gnutls lib: /usr/local/lib/libgnutls.26.dylib +DEBUG! ----------- gnutls lib: /opt/local/lib/libgnutls.26.dylib +DEBUG! ----------- gnutls lib: libgnutls-extra.26.dylib +DEBUG! ----------- gnutls lib: /usr/local/lib/libgnutls-extra.26.dylib +DEBUG! ----------- gnutls lib: /opt/local/lib/libgnutls-extra.26.dylib +""" +import sys + +# hackaround pyinstaller ctypes dependencies discovery +# See: +# http://www.pyinstaller.org/wiki/Features/CtypesDependencySupport#SolutioninPyInstaller +# gnutls.library.load_library is using a style of dep loading +# unsupported by pyinstaller. So we force these imports here. + +if sys.platform == "darwin": + from ctypes import CDLL + try: + CDLL("libgnutls.26.dylib") + except OSError: + pass + try: + CDLL("libgnutls-extra.26.dylib") + except OSError: + pass -- cgit v1.2.3 From 9cdc193c587631986e579c1ba37a8b982be01238 Mon Sep 17 00:00:00 2001 From: kali Date: Thu, 24 Jan 2013 18:47:41 +0900 Subject: all tests green again plus: * added soledad test requirements * removed soledad from run_tests run (+1K tests failing) * added option to run All tests to run_tests script * pep8 cleanup --- src/leap/crypto/__init__.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/leap/crypto/__init__.py') diff --git a/src/leap/crypto/__init__.py b/src/leap/crypto/__init__.py index 8df3fc6c..e69de29b 100644 --- a/src/leap/crypto/__init__.py +++ b/src/leap/crypto/__init__.py @@ -1,26 +0,0 @@ -""" -DEBUG! ----------- gnutls lib: libgnutls.26.dylib -DEBUG! ----------- gnutls lib: /usr/local/lib/libgnutls.26.dylib -DEBUG! ----------- gnutls lib: /opt/local/lib/libgnutls.26.dylib -DEBUG! ----------- gnutls lib: libgnutls-extra.26.dylib -DEBUG! ----------- gnutls lib: /usr/local/lib/libgnutls-extra.26.dylib -DEBUG! ----------- gnutls lib: /opt/local/lib/libgnutls-extra.26.dylib -""" -import sys - -# hackaround pyinstaller ctypes dependencies discovery -# See: -# http://www.pyinstaller.org/wiki/Features/CtypesDependencySupport#SolutioninPyInstaller -# gnutls.library.load_library is using a style of dep loading -# unsupported by pyinstaller. So we force these imports here. - -if sys.platform == "darwin": - from ctypes import CDLL - try: - CDLL("libgnutls.26.dylib") - except OSError: - pass - try: - CDLL("libgnutls-extra.26.dylib") - except OSError: - pass -- cgit v1.2.3