mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Adding separate Plugin.cc for HTTP analyzer for consistency.
This commit is contained in:
parent
7a95f5322c
commit
a191eed7db
3 changed files with 11 additions and 10 deletions
|
@ -4,7 +4,7 @@ include(BroPlugin)
|
|||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
bro_plugin_begin(HTTP)
|
||||
bro_plugin_cc(HTTP.cc)
|
||||
bro_plugin_cc(HTTP.cc Plugin.cc)
|
||||
bro_plugin_bif(events.bif)
|
||||
bro_plugin_bif(functions.bif)
|
||||
bro_plugin_end()
|
||||
|
|
|
@ -13,15 +13,6 @@
|
|||
#include "Event.h"
|
||||
#include "MIME.h"
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(HTTP)
|
||||
BRO_PLUGIN_DESCRIPTION("HTTP Analyzer");
|
||||
BRO_PLUGIN_ANALYZER("HTTP", HTTP_Analyzer::InstantiateAnalyzer);
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_BIF_FILE(functions);
|
||||
BRO_PLUGIN_END
|
||||
|
||||
const bool DEBUG_http = false;
|
||||
|
||||
// The EXPECT_*_NOTHING states are used to prevent further parsing. Used if a
|
||||
|
|
10
src/analyzer/protocols/http/Plugin.cc
Normal file
10
src/analyzer/protocols/http/Plugin.cc
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "HTTP.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(HTTP)
|
||||
BRO_PLUGIN_DESCRIPTION("HTTP Analyzer");
|
||||
BRO_PLUGIN_ANALYZER("HTTP", HTTP_Analyzer::InstantiateAnalyzer);
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_END
|
Loading…
Add table
Add a link
Reference in a new issue