comparison sat/core/exceptions.py @ 2687:e9cd473a2f46

core (xmpp): server certificate validation: XMPP server certificate is now checked, and connection is refused (by default) if it's not valid. Certificate check can be disabled in the new parameter "Configuration/check_certificate". If certificate checking is disabled, a warning note is sent on every new connection. Twisted and Wokkel are temporarly monkey patched in sat.core.tls_patches module, until modifications are merged upstream.
author Goffi <goffi@goffi.org>
date Sat, 10 Nov 2018 10:16:35 +0100
parents 60c9e163f1df
children 181735d1b062
comparison
equal deleted inserted replaced
2686:ce1e15d59496 2687:e9cd473a2f46
119 119
120 120
121 # Something which need to be done is not available yet 121 # Something which need to be done is not available yet
122 class NotReady(Exception): 122 class NotReady(Exception):
123 pass 123 pass
124
125
126 class InvalidCertificate(Exception):
127 """A TLS certificate is not valid"""
128 pass