summaryrefslogtreecommitdiff
path: root/src/core/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-17 19:07:15 +0100
committermathieui <mathieui@mathieui.net>2014-12-17 19:07:15 +0100
commitc76279c345df3fb9b43146987a07b8708f389ea9 (patch)
treecf632985b0137f5fbaf23b4550c937845454c4f6 /src/core/core.py
parentef3beab02b0ac10e5b535bb4cea949d44a413fd9 (diff)
downloadpoezio-c76279c345df3fb9b43146987a07b8708f389ea9.tar.gz
poezio-c76279c345df3fb9b43146987a07b8708f389ea9.tar.bz2
poezio-c76279c345df3fb9b43146987a07b8708f389ea9.tar.xz
poezio-c76279c345df3fb9b43146987a07b8708f389ea9.zip
Handle invalid certificate chains (with the ca_cert_path option)
Diffstat (limited to 'src/core/core.py')
-rw-r--r--src/core/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 8d7f7fcf..ba9b16e0 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -253,6 +253,7 @@ class Core(object):
self.on_chatstate_inactive)
self.xmpp.add_event_handler("attention", self.on_attention)
self.xmpp.add_event_handler("ssl_cert", self.validate_ssl)
+ self.xmpp.add_event_handler("ssl_invalid_chain", self.ssl_invalid_chain)
self.all_stanzas = Callback('custom matcher',
connection.MatchAll(None),
self.incoming_stanza)
@@ -1957,6 +1958,7 @@ class Core(object):
outgoing_stanza = handlers.outgoing_stanza
incoming_stanza = handlers.incoming_stanza
validate_ssl = handlers.validate_ssl
+ ssl_invalid_chain = handlers.ssl_invalid_chain
on_next_adhoc_step = handlers.on_next_adhoc_step
on_adhoc_error = handlers.on_adhoc_error
cancel_adhoc_command = handlers.cancel_adhoc_command