summaryrefslogtreecommitdiff
path: root/src/core/handlers.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/handlers.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/handlers.py')
-rw-r--r--src/core/handlers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index a1e8596c..8eb99cc3 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -1156,6 +1156,10 @@ def incoming_stanza(self, stanza):
self.current_tab().refresh()
self.doupdate()
+def ssl_invalid_chain(self, tb):
+ self.information('The certificate sent by the server is invalid.', 'Error')
+ self.disconnect()
+
def validate_ssl(self, pem):
"""
Check the server certificate using the slixmpp ssl_cert event