Changeset 9863
- Timestamp:
- 06/29/08 17:57:07 (5 months ago)
- Location:
- trunk/src
- Files:
-
- 3 modified
-
chat_control.py (modified) (2 diffs)
-
dialogs.py (modified) (1 diff)
-
session.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r9861 r9863 2326 2326 def _on_toggle_e2e_menuitem_activate(self, widget): 2327 2327 if self.session and self.session.enable_encryption: 2328 jid = str(self.session.jid) 2329 thread_id = self.session.thread_id 2330 2328 2331 self.session.terminate_e2e() 2329 2332 2330 self.print_esession_details() 2331 2332 jid = str(self.session.jid) 2333 2334 gajim.connections[self.account].delete_session(jid, 2335 self.session.thread_id) 2336 2337 self.set_session(gajim.connections[self.account].make_new_session(jid)) 2333 gajim.connections[self.account].delete_session(jid, thread_id) 2338 2334 else: 2339 2335 if not self.session: … … 2342 2338 self.set_session(new_sess) 2343 2339 2344 # XXX decide whether to use 4 or 3 message negotiation2345 2340 self.session.negotiate_e2e(False) 2346 2341 -
trunk/src/dialogs.py
r9861 r9863 3819 3819 def on_verify_now_button_clicked(self, widget): 3820 3820 pritext = _('''Have you verified the remote contact's identity?''') 3821 sectext = _('''To prevent a man-in-the-middle attack, you should speak to this person directly (in person or on the phone) and verify that they see the same SAS as you.\n\nThis session's SAS: %s''') % self.session.sas3821 sectext = _('''To prevent a man-in-the-middle attack, you should speak to %s directly (in person or on the phone) and verify that they see the same SAS as you.\n\nThis session's SAS: <b>%s<b>''') % (self.session.jid, self.session.sas) 3822 3822 sectext += '\n\n' + _('Did you talk to the remote contact and verify the SAS?') 3823 3823 -
trunk/src/session.py
r9861 r9863 22 22 23 23 def acknowledge_termination(self): 24 if self.control: 25 self.control.set_session(None) 26 24 27 stanza_session.EncryptedStanzaSession.acknowledge_termination(self) 25 26 if self.control:27 if self.enable_encryption:28 self.control.print_esession_details()29 30 self.control.set_session(None)31 28 32 29 def terminate(self):
