From b3148296142942d6ebed789d819c9010abce8b1e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 Sep 2016 17:27:57 +0200 Subject: [PATCH] http_raw_header: register inspect engine from keyword --- src/detect-engine.c | 6 ------ src/detect-http-raw-header.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 8c83ae1977..2f90f1deb4 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -128,9 +128,6 @@ void DetectEngineRegisterAppInspectionEngines(void) }; struct tmp_t data_toserver[] = { - { ALPROTO_HTTP, - DETECT_SM_LIST_HRHDMATCH, - DetectEngineInspectHttpRawHeader }, { ALPROTO_HTTP, DETECT_SM_LIST_HMDMATCH, DetectEngineInspectHttpMethod }, @@ -185,9 +182,6 @@ void DetectEngineRegisterAppInspectionEngines(void) { ALPROTO_HTTP, DETECT_SM_LIST_FILEDATA, DetectEngineInspectHttpServerBody }, - { ALPROTO_HTTP, - DETECT_SM_LIST_HRHDMATCH, - DetectEngineInspectHttpRawHeader }, { ALPROTO_HTTP, DETECT_SM_LIST_HCDMATCH, DetectEngineInspectHttpCookie }, diff --git a/src/detect-http-raw-header.c b/src/detect-http-raw-header.c index 8729d26e7d..6f5c6ada7e 100644 --- a/src/detect-http-raw-header.c +++ b/src/detect-http-raw-header.c @@ -86,6 +86,12 @@ void DetectHttpRawHeaderRegister(void) DETECT_SM_LIST_HRHDMATCH, 2, PrefilterTxResponseHeadersRawRegister); + DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HRHDMATCH, + DetectEngineInspectHttpRawHeader); + DetectAppLayerInspectEngineRegister(ALPROTO_HTTP, SIG_FLAG_TOCLIENT, + DETECT_SM_LIST_HRHDMATCH, + DetectEngineInspectHttpRawHeader); return; }