From eb19eb3fe4f761ee876aff0b9a58a70844e73d17 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 Sep 2016 17:22:20 +0200 Subject: [PATCH] http_header: register inspect engine from keyword --- src/detect-engine.c | 7 ------- src/detect-http-header.c | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 8992238dbe..8c83ae1977 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -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 }, diff --git a/src/detect-http-header.c b/src/detect-http-header.c index 291be54899..8ff357a370 100644 --- a/src/detect-http-header.c +++ b/src/detect-http-header.c @@ -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; }