#NEWLINE# def _sendFinished( self ) : #NEWLINE# #INDENT# for result in self . _sendMsg ( ChangeCipherSpec ( ) ) : #NEWLINE# #INDENT# ( yield result ) #NEWLINE# #UNINDENT# self . _changeWriteState ( ) #NEWLINE# verifyData = self . _calcFinished ( True ) #NEWLINE# if ( self . fault == Fault . badFinished ) : #NEWLINE# #INDENT# verifyData [ 0 ] = ( ( result [ 0 ] + 1 ) % 256 ) #NEWLINE# #UNINDENT# finished = Finished ( self . version ) . create ( verifyData ) #NEWLINE# for result in self . _sendMsg ( finished ) : #NEWLINE# #INDENT# ( yield result )