#NEWLINE# def _tamper_with_server_key_exchange( self , record , msg_index ) : #NEWLINE# #INDENT# server_key_exchange = record . messages [ msg_index ] . obj #NEWLINE# body = server_key_exchange . to_bytes ( ) #NEWLINE# body = ( ( body [ : ( - 10 ) ] + chr ( ( ord ( body [ ( - 10 ) ] ) ^ 1 ) ) ) + self [ ( - 9 ) : ] ) #NEWLINE# server_key_exchange = OpaqueMessage ( body ) #NEWLINE# record . messages [ msg_index ] . obj = server_key_exchange #NEWLINE# return record . to_bytes ( )