comparison sat/core/sat_main.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 bc122b68eacd
children 943e78e18882
comparison
equal deleted inserted replaced
2686:ce1e15d59496 2687:e9cd473a2f46
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 import sat 20 import sat
21 from sat.core.i18n import _, languageSwitch 21 from sat.core.i18n import _, languageSwitch
22 from sat.core import patches
23 patches.apply()
22 from twisted.application import service 24 from twisted.application import service
23 from twisted.internet import defer 25 from twisted.internet import defer
24 from twisted.words.protocols.jabber import jid 26 from twisted.words.protocols.jabber import jid
25 from twisted.internet import reactor 27 from twisted.internet import reactor
26 from wokkel.xmppim import RosterItem 28 from wokkel.xmppim import RosterItem