code cleanup - remove DetectUricontentGetLastPattern

remotes/origin/HEAD
Anoop Saldanha 14 years ago committed by Victor Julien
parent dcb2afb02f
commit e851804c92

@ -154,32 +154,6 @@ void DetectUricontentPrint(DetectContentData *cd)
SCLogDebug("-----------"); SCLogDebug("-----------");
} }
/**
* \brief Search the first DETECT_URICONTENT
* \retval pointer to the SigMatch holding the DetectUricontent
* \param sm pointer to the current SigMatch of a parsing process
* \retval null if no applicable DetectUricontent was found
* \retval pointer to the SigMatch that has the previous SigMatch
* of type DetectUricontent
*/
SigMatch *DetectUricontentGetLastPattern(SigMatch *sm)
{
if (sm == NULL)
return NULL;
while (sm != NULL && sm->type != DETECT_URICONTENT)
sm = sm->prev;
if (sm == NULL)
return NULL;
DetectContentData *cd = (DetectContentData*) sm->ctx;
if (cd == NULL)
return NULL;
return sm;
}
/** /**
* \brief Setup the detecturicontent keyword data from the string defined in * \brief Setup the detecturicontent keyword data from the string defined in
* the rule set. * the rule set.

@ -34,7 +34,6 @@
void DetectUricontentRegister (void); void DetectUricontentRegister (void);
uint32_t DetectUricontentMaxId(DetectEngineCtx *); uint32_t DetectUricontentMaxId(DetectEngineCtx *);
//uint32_t DetectUricontentInspectMpm(DetectEngineThreadCtx *det_ctx, void *alstate); //uint32_t DetectUricontentInspectMpm(DetectEngineThreadCtx *det_ctx, void *alstate);
SigMatch *DetectUricontentGetLastPattern(SigMatch *);
void DetectUricontentPrint(DetectContentData *); void DetectUricontentPrint(DetectContentData *);
uint32_t DetectUricontentInspectMpm(DetectEngineThreadCtx *, Flow *, HtpState *, uint8_t); uint32_t DetectUricontentInspectMpm(DetectEngineThreadCtx *, Flow *, HtpState *, uint8_t);

Loading…
Cancel
Save