Changeset 9534
- Timestamp:
- 04/26/08 03:52:03 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/session_centric/src/common/stanza_session.py
r9459 r9534 84 84 '''A negotiation has been cancelled, so reset this session to its default state.''' 85 85 86 if hasattr(self, 'control'):86 if self.control: 87 87 self.control.on_cancel_session_negotiation() 88 88 … … 779 779 self.enable_encryption = True 780 780 781 if hasattr(self, 'control'):781 if self.control: 782 782 self.control.print_esession_details() 783 783 … … 799 799 self.do_retained_secret(k, srs) 800 800 801 # don't need to calculate ks_s here 802 801 # ks_s doesn't need to be calculated here 803 802 self.kc_s, self.km_s, self.ks_s = self.generate_initiator_keys(k) 804 803 self.kc_o, self.km_o, self.ks_o = self.generate_responder_keys(k) … … 807 806 808 807 self.verify_identity(form, self.d, False, 'b') 809 # Note: If Alice discovers an error then she SHOULD ignore any encrypted content she received in the stanza.808 # Note: If Alice discovers an error then she SHOULD ignore any encrypted content she received in the stanza. 810 809 811 810 if self.negotiated['logging'] == 'mustnot': … … 815 814 self.enable_encryption = True 816 815 817 if hasattr(self, 'control'):816 if self.control: 818 817 self.control.print_esession_details() 819 818
