save certificate fingerprint when we don't have it.
This commit is contained in:
parent
3813f20888
commit
5575502c0b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue