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):
|
def put_event(self, ev):
|
||||||
if ev[0] in gajim.handlers:
|
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])
|
gajim.handlers[ev[0]](self.name, ev[1])
|
||||||
|
|
||||||
def dispatch(self, event, data):
|
def dispatch(self, event, data):
|
||||||
|
@ -707,6 +708,9 @@ class Connection(ConnectionHandlers):
|
||||||
self.dispatch('FINGERPRINT_ERROR',
|
self.dispatch('FINGERPRINT_ERROR',
|
||||||
(con.Connection.ssl_fingerprint_sha1,))
|
(con.Connection.ssl_fingerprint_sha1,))
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
gajim.config.set_per('accounts', self.name, 'ssl_fingerprint_sha1',
|
||||||
|
con.Connection.ssl_fingerprint_sha1)
|
||||||
self._register_handlers(con, con_type)
|
self._register_handlers(con, con_type)
|
||||||
con.auth(
|
con.auth(
|
||||||
user=name,
|
user=name,
|
||||||
|
|
Loading…
Reference in New Issue