@@ -869,7 +911,8 @@ class EncryptedStanzaSession(StanzaSession):
# 4.6.2 Verifying Bob's Identity
self.verify_identity(form,self.d,False,'b')
# Note: If Alice discovers an error then she SHOULD ignore any encrypted content she received in the stanza.
# Note: If Alice discovers an error then she SHOULD ignore any encrypted
# content she received in the stanza.
ifself.negotiated['logging']=='mustnot':
self.loggable=False
...
...
@@ -881,7 +924,9 @@ class EncryptedStanzaSession(StanzaSession):
self.control.print_esession_details()
defdo_retained_secret(self,k,old_srs):
'''calculate the new retained secret. determine if the user needs to check the remote party's identity. set up callbacks for when the identity has been verified.'''
'''calculate the new retained secret. determine if the user needs to check
the remote party's identity. set up callbacks for when the identity has
been verified.'''
new_srs=self.hmac(k,'New Retained Secret')
self.srs=new_srs
...
...
@@ -899,16 +944,19 @@ class EncryptedStanzaSession(StanzaSession):