library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Generates a bpmalloc'd version of the status code array above
Generates a bpmalloc'd version of the status code array above
Generates a bpmalloc ' d version of the status code array above
P_BP_WEB_ASSESSMENT_EXCLUSION_CODES BP_GenStatusCodeArray()
{
	size_t allocSize = sizeof(httpStatusCodes);
	char * retTable = (char *) bpmalloc(allocSize);
	if (!retTable)
		return NULL;
	memcpy(retTable, &httpStatusCodes, allocSize);
	return (P_BP_WEB_ASSESSMENT_EXCLUSION_CODES) retTable;
}
P_BP_WEB_ASSESSMENT_EXCLUSION_CODES BP_GenStatusCodeArray ( ) { size_t allocSize = sizeof ( httpStatusCodes ) ; char * retTable = ( char * ) bpmalloc ( allocSize ) ; if ( ! retTable ) return NULL ; memcpy ( retTable , & httpStatusCodes , allocSize ) ; return ( P_BP_WEB_ASSESSMENT_EXCLUSION_CODES ) retTable ; }
Generates a bpmalloc'd version of the status code array above
Generates a bpmalloc ' d version of the status code array above
// set size of the status code array // allocate space for newly returned array // null check // copy in status codes // return the new structure