#NEWLINE# def perform( self , achalls ) : #NEWLINE# #INDENT# 'Perform the configuration related challenge.\n\n        This function currently assumes all challenges will be fulfilled.\n        If this turns out not to be the case in the future. Cleanup and\n        outstanding challenges will have to be designed better.\n\n        ' #NEWLINE# self . _chall_out . update ( achalls ) #NEWLINE# responses = ( [ None ] * len ( achalls ) ) #NEWLINE# chall_doer = tls_sni_01 . ApacheTlsSni01 ( responses ) #NEWLINE# for ( i , achall ) in enumerate ( achalls ) : #NEWLINE# #INDENT# chall_doer . add_chall ( achall , i ) #NEWLINE# #UNINDENT# sni_response = chall_doer . perform ( ) #NEWLINE# if sni_response : #NEWLINE# #INDENT# self . restart ( ) #NEWLINE# time . sleep ( 3 ) #NEWLINE# for ( i , resp ) in enumerate ( sni_response ) : #NEWLINE# #INDENT# responses [ chall_doer . indices [ i ] ] = resp #NEWLINE# #UNINDENT# #UNINDENT# return responses