Skip to content
Permalink
Browse files

Release as GPLv3.

  • Loading branch information...
geertj committed Jun 12, 2013
1 parent ff3fd1b commit f29c9f4091bd67b94ca0b0eac7bf91373bfe65ba
Showing with 1,085 additions and 148 deletions.
  1. +674 −0 LICENSE
  2. +6 −2 lib/bluepass/__init__.py
  3. +6 −2 lib/bluepass/backend.py
  4. +6 −2 lib/bluepass/crypto.py
  5. +6 −2 lib/bluepass/database.py
  6. +6 −2 lib/bluepass/error.py
  7. +8 −4 lib/bluepass/ext/_sslex.c
  8. +6 −2 lib/bluepass/ext/openssl.c
  9. +6 −2 lib/bluepass/ext/secmem.c
  10. +6 −2 lib/bluepass/factory.py
  11. +6 −2 lib/bluepass/frontend.py
  12. +6 −2 lib/bluepass/keyring.py
  13. +6 −2 lib/bluepass/locator.py
  14. +6 −2 lib/bluepass/main.py
  15. +7 −4 lib/bluepass/messagebus.py
  16. +12 −8 lib/bluepass/model.py
  17. +6 −2 lib/bluepass/passwords.py
  18. +6 −2 lib/bluepass/platform/__init__.py
  19. +6 −2 lib/bluepass/platform/darwin/misc.py
  20. +6 −2 lib/bluepass/platform/dummy/keyring.py
  21. +6 −2 lib/bluepass/platform/dummy/zeroconf.py
  22. +6 −2 lib/bluepass/platform/freedesktop/avahi.py
  23. +6 −2 lib/bluepass/platform/freedesktop/secrets.py
  24. +6 −2 lib/bluepass/platform/linux/misc.py
  25. +6 −2 lib/bluepass/platform/posix/backend.py
  26. +6 −2 lib/bluepass/platform/posix/errno.py
  27. +6 −2 lib/bluepass/platform/posix/misc.py
  28. +6 −2 lib/bluepass/platform/qt/application.py
  29. +6 −2 lib/bluepass/platform/qt/backend.py
  30. +6 −2 lib/bluepass/platform/qt/dialogs.py
  31. +6 −2 lib/bluepass/platform/qt/frontend.py
  32. +9 −4 lib/bluepass/platform/qt/mainwindow.py
  33. +6 −2 lib/bluepass/platform/qt/messagebus.py
  34. +6 −2 lib/bluepass/platform/qt/passwordbutton.py
  35. +6 −2 lib/bluepass/platform/qt/passwordview.py
  36. +6 −2 lib/bluepass/platform/qt/util.py
  37. +6 −2 lib/bluepass/platform/qt/vaultmanager.py
  38. +6 −2 lib/bluepass/platform/test/test_lock.py
  39. +6 −2 lib/bluepass/platform/windows/socket.py
  40. +6 −2 lib/bluepass/socketapi.py
  41. +10 −3 lib/bluepass/syncapi.py
  42. +6 −2 lib/bluepass/syncer.py
  43. +6 −2 lib/bluepass/test/test_backend.py
  44. +6 −2 lib/bluepass/test/test_crypto.py
  45. +6 −2 lib/bluepass/test/test_database.py
  46. +6 −2 lib/bluepass/test/test_keyring.py
  47. +11 −7 lib/bluepass/test/test_locator.py
  48. +6 −2 lib/bluepass/test/test_messagebus.py
  49. +6 −2 lib/bluepass/test/test_model.py
  50. +6 −2 lib/bluepass/test/test_passwords.py
  51. +6 −2 lib/bluepass/test/test_syncapi.py
  52. +6 −2 lib/bluepass/test/unit.py
  53. +6 −2 lib/bluepass/util/base64.py
  54. +6 −2 lib/bluepass/util/json.py
  55. +6 −2 lib/bluepass/util/logging.py
  56. +6 −2 lib/bluepass/util/misc.py
  57. +6 −2 lib/bluepass/util/optparse.py
  58. +6 −2 lib/bluepass/util/selfpipe.py
  59. +6 −2 lib/bluepass/util/ssl.py
  60. +6 −2 lib/bluepass/util/test/test_json.py
  61. +6 −2 lib/bluepass/util/test/test_ssl.py
  62. +6 −2 lib/bluepass/util/uuid.py
  63. +6 −2 tools/aesvect.py
  64. +6 −2 tools/oakley.py
  65. +6 −2 tools/pkcs1vect.py
  66. +6 −2 tools/strength.py
674 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012 by Geert
# Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import socket
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import hmac
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import re
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import sys
import logging
@@ -1,6 +1,10 @@
/*
* This file is part of MPM. MPM is Copyright (c) 2012 by Geert Jansen. All
* rights are reserved.
* This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
* Geert Jansen.
*
* Bluepass is free software available under the GNU General Public License,
* version 3. See the file LICENSE distributed with this file for the exact
* licensing terms.
*
* This is a Python C extension module that adds a few extra functions for
* to the Python _ssl module.
@@ -88,8 +92,8 @@ sslex_get_channel_binding(PyObject *self, PyObject *args)
#if defined(__APPLE__) && defined(__LP64__)
/* FUDGE... When compiling the Python module against the OpenSSL
* headers provided in /usr/include/openssl, the generated machine
* code places the s3->tmp strucute 8 bytes ealier than it really is.
* No idea where this comes from. */
* code places the s3->tmp structure 8 bytes ealier than it really is.
* No idea where this comes from.... */
/* Might also be needed on 32-bit or PPC - NOT tested. */
s3 = (SSL3_STATE *) ((char *) sslob->ssl->s3 + 8);
#else
@@ -1,6 +1,10 @@
/*
* This file is part of Bluepass. Bluepass is Copyright (c) 2012
* Geert Jansen. All rights are reserved.
* This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
* Geert Jansen.
*
* Bluepass is free software available under the GNU General Public License,
* version 3. See the file LICENSE distributed with this file for the exact
* licensing terms.
*/

#include <Python.h>
@@ -1,6 +1,10 @@
/*
* This file is part of Bluepass. Bluepass is Copyright (c) 2012 by Geert
* Jansen. All rights are reserved.
* This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
* Geert Jansen.
*
* Bluepass is free software available under the GNU General Public License,
* version 3. See the file LICENSE distributed with this file for the exact
* licensing terms.
*/

#include <Python.h>
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import sys
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.


class Frontend(object):
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

from bluepass.error import Error

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import logging
from bluepass.error import Error
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import sys

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import sys
import socket
@@ -448,8 +452,7 @@ def cancel_timer(self, timer):
timer.stop()

def create_callback(self, callback, *args):
event = get_hub().loop.callback()
event.start(callback, *args)
get_hub().loop.run_callback(callback, *args)


class MessageBusConnection(MessageBusConnectionBase):
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import time
import math
@@ -720,12 +724,12 @@ def _create_vault_key(self, password):
def _create_vault_keys(self, password):
"""Create all 3 vault keys (sign, encrypt and auth)."""
# Key generation is CPU intensive and would block gevent. We therefore
# generate the keys in a separate thread. If we have >= 2 cores we run
# them in two parallel threads as the C exension module for openssl
# enables threads when generating keys and so the GIL is not limiting
# us to 1 concurrent thread.
# Also make sure to import threading late so that monkey gets a chance
# to patch the time module making Thread.join() cooperative.
# generate the keys in a separate thread. If we have more than 1 core
# we generate the keys in two parallel threads as the C exension module
# for openssl enables threads when generating keys and so the GIL is
# not limiting us to 1 concurrent thread. Also make sure to import
# threading late so that monkey gets a chance to patch the time module
# making Thread.join() cooperative.
#
# Only measure the PBKDF2 speed once, not once per thread
prf = 'hmac-sha256' if self.crypto.pbkdf2_prf_available('hmac-sha256') \
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import math
import os.path
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import sys
from bluepass.error import Error
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
from subprocess import Popen, PIPE
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

from bluepass.keyring import Keyring

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

from bluepass.zeroconf import Zeroconf

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import socket
import logging
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import time
import tdbus
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012 by Geert
# Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import sys
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

from __future__ import absolute_import

@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import os
import sys
@@ -1,6 +1,10 @@
#
# This file is part of Bluepass. Bluepass is Copyright (c) 2012
# Geert Jansen. All rights are reserved.
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.

import sys
from PySide.QtGui import QApplication, QIcon, QPixmap
Oops, something went wrong.

0 comments on commit f29c9f4

Please sign in to comment.
You can’t perform that action at this time.