library/src/blockclass/BP-BlockClass.cc
// displays the web result stack in order
displays the web result stack in order
displays the web result stack in order
BP_ERROR_T Block::displayWebResultStack()
{
	if(!this->web_result_stack_n)
		return ERR_FAILURE;
	if(!this->web_result_stack)
		return ERR_FAILURE;
	P_BP_WEB_RESULT_ENTRY entry = NULL;
	size_t n = 0;
	for(; n < this->web_result_stack_n; n++)
	{
		entry = (P_BP_WEB_RESULT_ENTRY) &this->web_result_stack[n];
		printf("\n [+] Web Result Entry: %u  ", n);
		printf("\n\t result_id:       %u", entry->result_id);
		printf("\n\t assessment_id:   %u", entry->assessment_id);
		printf("\n\t type:            %u", entry->type);
		printf("\n\t sha1:            %s", entry->sha1);
		printf("\n\t href:            %s", entry->href);
		printf("\n\t base:                      %zu", entry->base);
		printf("\n\t path:                      %zu", entry->path);
		printf("\n\t script:                    %zu", entry->script);
		printf("\n\t stat                       %zu", entry->status);
		printf("\n\t update_resolution_status:  %zu", entry->update_resolution_status);
		printf("\n\t origin_type:               %zu", entry->origin_type_form_or_anchor_code);
		printf("\n\t commit_ts:                 %s", entry->commit_timestamp);
		printf("\n\t audit_start_ts:            %s", entry->audit_start_timestamp);
		printf("\n\t audit_completed_ts:        %s", entry->audit_completed_timestamp);
		printf("\n\t spidered:                  %zu", entry->spidered);
		printf("\n\t spidered_parent_result_id: %zu", entry->spidered_parent_result_id);
		printf("\n\t spidered_ts:               %s", entry->spidered_timestamp);
		printf("\n\t disabled:                  %zu", entry->disabled);
		printf("\n\t disabled_code:             %zu", entry->disable_code);
		printf("\n\t disabled_path:             %zu", entry->disabled_path);
		printf("\n\t disabled_path_code:        %zu", entry->disabled_path_code);
		printf("\n\t disabled_base:             %zu", entry->disabled_base);
		printf("\n\t disabled_base_code:        %zu", entry->disabled_base_code);
		printf("\n\t disabled_script:           %zu", entry->disabled_script);
		printf("\n\t disabled_script_code:      %zu", entry->disabled_script_code);
		printf("\n");
	}
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: displayWebResultStack ( ) { if ( ! this -> web_result_stack_n ) return ERR_FAILURE ; if ( ! this -> web_result_stack ) return ERR_FAILURE ; P_BP_WEB_RESULT_ENTRY entry = NULL ; size_t n = 0 ; for ( ; n < this -> web_result_stack_n ; n ++ ) { entry = ( P_BP_WEB_RESULT_ENTRY ) & this -> web_result_stack [ n ] ; printf ( " \n " , n ) ; printf ( " \n \t " , entry -> result_id ) ; printf ( " \n \t " , entry -> assessment_id ) ; printf ( " \n \t " , entry -> type ) ; printf ( " \n \t " , entry -> sha1 ) ; printf ( " \n \t " , entry -> href ) ; printf ( " \n \t " , entry -> base ) ; printf ( " \n \t " , entry -> path ) ; printf ( " \n \t " , entry -> script ) ; printf ( " \n \t " , entry -> status ) ; printf ( " \n \t " , entry -> update_resolution_status ) ; printf ( " \n \t " , entry -> origin_type_form_or_anchor_code ) ; printf ( " \n \t " , entry -> commit_timestamp ) ; printf ( " \n \t " , entry -> audit_start_timestamp ) ; printf ( " \n \t " , entry -> audit_completed_timestamp ) ; printf ( " \n \t " , entry -> spidered ) ; printf ( " \n \t " , entry -> spidered_parent_result_id ) ; printf ( " \n \t " , entry -> spidered_timestamp ) ; printf ( " \n \t " , entry -> disabled ) ; printf ( " \n \t " , entry -> disable_code ) ; printf ( " \n \t " , entry -> disabled_path ) ; printf ( " \n \t " , entry -> disabled_path_code ) ; printf ( " \n \t " , entry -> disabled_base ) ; printf ( " \n \t " , entry -> disabled_base_code ) ; printf ( " \n \t " , entry -> disabled_script ) ; printf ( " \n \t " , entry -> disabled_script_code ) ; printf ( " \n " ) ; } return ERR_SUCCESS ; }
displays the web result stack in order
displays the web result stack in order
// entry pointer used for iteration below // simple loop for iteration purposes // set entry to current index for manipulation // display entry information // return indicating success