summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-02-22 19:25:21 -0400
committerKali Kaneko <kali@leap.se>2016-02-22 19:25:21 -0400
commit88941164243ce1ac6f30c790120165c04ea4a041 (patch)
treeb58b449b4edcaadb6948f21c19e6615216ab7839
parenta36fdc8ebec9c42c61a2c733ea280a3fa9103598 (diff)
[feature] optional flag to disable curve authentication
-rw-r--r--src/leap/common/events/zmq_components.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/common/events/zmq_components.py b/src/leap/common/events/zmq_components.py
index 51de02c..2c40f62 100644
--- a/src/leap/common/events/zmq_components.py
+++ b/src/leap/common/events/zmq_components.py
@@ -58,7 +58,7 @@ class TxZmqComponent(object):
_component_type = None
- def __init__(self, path_prefix=None):
+ def __init__(self, path_prefix=None, enable_curve=True):
"""
Initialize the txzmq component.
"""
@@ -68,6 +68,10 @@ class TxZmqComponent(object):
path_prefix = get_path_prefix(flags.STANDALONE)
self._config_prefix = os.path.join(path_prefix, "leap", "events")
self._connections = []
+ if enable_curve:
+ self.use_curve = zmq_has_curve()
+ else:
+ self.use_curve = False
@property
def component_type(self):