#NEWLINE# def ssh_NEWKEYS( self , packet ) : #NEWLINE# #INDENT# "\n        Called when we receive a MSG_NEWKEYS message.  No payload.\n        If we've finished setting up our own keys, start using them.\n        Otherwise, remember that we've received this message.\n\n        @type packet: L{bytes}\n        @param packet: The message data.\n        " #NEWLINE# if ( packet != b'' ) : #NEWLINE# #INDENT# self . sendDisconnect ( DISCONNECT_PROTOCOL_ERROR , b'NEWKEYS takes no data' ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not self . nextEncryptions . encBlockSize ) : #NEWLINE# #INDENT# self . _gotNewKeys = 1 #NEWLINE# return #NEWLINE# #UNINDENT# self . _newKeys ( ) #NEWLINE# self . connectionSecure ( )