projects
/
leap_pycommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a36fdc8
)
[feature] optional flag to disable curve authentication
author
Kali Kaneko
<kali@leap.se>
Mon, 22 Feb 2016 23:25:21 +0000
(19:25 -0400)
committer
Kali Kaneko
<kali@leap.se>
Mon, 22 Feb 2016 23:25:21 +0000
(19:25 -0400)
src/leap/common/events/zmq_components.py
patch
|
blob
|
history
diff --git
a/src/leap/common/events/zmq_components.py
b/src/leap/common/events/zmq_components.py
index
51de02c
..
2c40f62
100644
(file)
--- 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):