save ssl fingerprint as soon as we accept a connection to the host. Fixes #7041

This commit is contained in:
Yann Leboulanger 2011-11-14 18:32:18 +01:00
parent 46d6453634
commit 55d48e0d7c
1 changed files with 2 additions and 2 deletions

View File

@ -1179,8 +1179,8 @@ class Interface:
f.write(server + '\n') f.write(server + '\n')
f.write(obj.cert + '\n\n') f.write(obj.cert + '\n\n')
f.close() f.close()
gajim.config.set_per('accounts', account, gajim.config.set_per('accounts', account, 'ssl_fingerprint_sha1',
'ssl_fingerprint_sha1', obj.fingerprint) obj.fingerprint)
if is_checked[1]: if is_checked[1]:
ignore_ssl_errors = gajim.config.get_per('accounts', account, ignore_ssl_errors = gajim.config.get_per('accounts', account,
'ignore_ssl_errors').split() 'ignore_ssl_errors').split()