http_header: register inspect engine from keyword

pull/2310/head
Victor Julien 9 years ago
parent 4096f76b1b
commit eb19eb3fe4

@ -46,7 +46,6 @@
#include "detect-engine-uri.h"
#include "detect-engine-hsbd.h"
#include "detect-engine-hhd.h"
#include "detect-engine-hrhd.h"
#include "detect-engine-hmd.h"
#include "detect-engine-hcd.h"
@ -129,9 +128,6 @@ void DetectEngineRegisterAppInspectionEngines(void)
};
struct tmp_t data_toserver[] = {
{ ALPROTO_HTTP,
DETECT_SM_LIST_HHDMATCH,
DetectEngineInspectHttpHeader },
{ ALPROTO_HTTP,
DETECT_SM_LIST_HRHDMATCH,
DetectEngineInspectHttpRawHeader },
@ -189,9 +185,6 @@ void DetectEngineRegisterAppInspectionEngines(void)
{ ALPROTO_HTTP,
DETECT_SM_LIST_FILEDATA,
DetectEngineInspectHttpServerBody },
{ ALPROTO_HTTP,
DETECT_SM_LIST_HHDMATCH,
DetectEngineInspectHttpHeader },
{ ALPROTO_HTTP,
DETECT_SM_LIST_HRHDMATCH,
DetectEngineInspectHttpRawHeader },

@ -88,6 +88,13 @@ void DetectHttpHeaderRegister(void)
DETECT_SM_LIST_HHDMATCH, 2,
PrefilterTxHttpResponseHeadersRegister);
DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOSERVER,
DETECT_SM_LIST_HHDMATCH,
DetectEngineInspectHttpHeader);
DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOCLIENT,
DETECT_SM_LIST_HHDMATCH,
DetectEngineInspectHttpHeader);
return;
}

Loading…
Cancel
Save