Author: asterix Date: 2009-01-13 20:24:09 +0100 (Tue, 13 Jan 2009) New Revision: 10979
Modified: trunk/src/common/connection.py Log: save certificate fingerprint when we don't have it.
Modified: trunk/src/common/connection.py =================================================================== --- trunk/src/common/connection.py 2009-01-13 19:20:12 UTC (rev 10978) +++ trunk/src/common/connection.py 2009-01-13 19:24:09 UTC (rev 10979) @@ -181,6 +181,7 @@
def put_event(self, ev): if ev[0] in gajim.handlers: + log.debug('Sending %s event to GUI: %s' % (ev[0], ev[1:])) gajim.handlers[ev[0]](self.name, ev[1])
def dispatch(self, event, data): @@ -707,6 +708,9 @@ self.dispatch('FINGERPRINT_ERROR', (con.Connection.ssl_fingerprint_sha1,)) return True + else: + gajim.config.set_per('accounts', self.name, 'ssl_fingerprint_sha1', + con.Connection.ssl_fingerprint_sha1) self._register_handlers(con, con_type) con.auth( user=name,