save certificate fingerprint when we don't have it.

This commit is contained in:
Yann Leboulanger 2009-01-13 19:24:09 +00:00
parent 3813f20888
commit 5575502c0b
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,7 @@ class Connection(ConnectionHandlers):
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 @@ class Connection(ConnectionHandlers):
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,