Changeset 9534

Show
Ignore:
Timestamp:
04/26/08 03:52:03 (7 months ago)
Author:
bct
Message:

fixed e2ee traceback

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/session_centric/src/common/stanza_session.py

    r9459 r9534  
    8484                '''A negotiation has been cancelled, so reset this session to its default state.''' 
    8585 
    86                 if hasattr(self, 'control'): 
     86                if self.control: 
    8787                        self.control.on_cancel_session_negotiation() 
    8888 
     
    779779                self.enable_encryption = True 
    780780 
    781                 if hasattr(self, 'control'): 
     781                if self.control: 
    782782                        self.control.print_esession_details() 
    783783 
     
    799799                self.do_retained_secret(k, srs) 
    800800 
    801                 # don't need to calculate ks_s here 
    802  
     801                # ks_s doesn't need to be calculated here 
    803802                self.kc_s, self.km_s, self.ks_s = self.generate_initiator_keys(k) 
    804803                self.kc_o, self.km_o, self.ks_o = self.generate_responder_keys(k) 
     
    807806 
    808807                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. 
    810809 
    811810                if self.negotiated['logging'] == 'mustnot': 
     
    815814                self.enable_encryption = True 
    816815 
    817                 if hasattr(self, 'control'): 
     816                if self.control: 
    818817                        self.control.print_esession_details() 
    819818