http_method: register inspect engine from keyword

pull/2310/head
Victor Julien 9 years ago
parent b314829614
commit cd8b1b0b4c

@ -47,7 +47,6 @@
#include "detect-engine-uri.h" #include "detect-engine-uri.h"
#include "detect-engine-hsbd.h" #include "detect-engine-hsbd.h"
#include "detect-engine-hrhd.h" #include "detect-engine-hrhd.h"
#include "detect-engine-hmd.h"
#include "detect-engine-hcd.h" #include "detect-engine-hcd.h"
#include "detect-engine-hrud.h" #include "detect-engine-hrud.h"
#include "detect-engine-hsmd.h" #include "detect-engine-hsmd.h"
@ -128,9 +127,6 @@ void DetectEngineRegisterAppInspectionEngines(void)
}; };
struct tmp_t data_toserver[] = { struct tmp_t data_toserver[] = {
{ ALPROTO_HTTP,
DETECT_SM_LIST_HMDMATCH,
DetectEngineInspectHttpMethod },
{ ALPROTO_HTTP, { ALPROTO_HTTP,
DETECT_SM_LIST_HCDMATCH, DETECT_SM_LIST_HCDMATCH,
DetectEngineInspectHttpCookie }, DetectEngineInspectHttpCookie },

@ -85,6 +85,10 @@ void DetectHttpMethodRegister(void)
DETECT_SM_LIST_HMDMATCH, 4, DETECT_SM_LIST_HMDMATCH, 4,
PrefilterTxMethodRegister); PrefilterTxMethodRegister);
DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOSERVER,
DETECT_SM_LIST_HMDMATCH,
DetectEngineInspectHttpMethod);
SCLogDebug("registering http_method rule option"); SCLogDebug("registering http_method rule option");
} }

Loading…
Cancel
Save