mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Move Kerberos analyzer to the new plugin architecture.
This commit is contained in:
parent
e6d6ba6ec6
commit
bcdeef6012
2 changed files with 17 additions and 7 deletions
|
@ -18,7 +18,7 @@ public:
|
|||
virtual void DeliverPacket(int len, const u_char* data, bool orig,
|
||||
uint64 seq, const IP_Hdr* ip, int caplen);
|
||||
|
||||
static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new KRB_Analyzer(conn); }
|
||||
|
||||
protected:
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
//See the file in the main distribution directory for copyright.
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
#include "KRB.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(Bro, KRB)
|
||||
BRO_PLUGIN_DESCRIPTION("Kerberos analyzer");
|
||||
BRO_PLUGIN_ANALYZER("KRB", krb::KRB_Analyzer);
|
||||
BRO_PLUGIN_BIF_FILE(types);
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_END
|
||||
namespace plugin {
|
||||
namespace Bro_KRB {
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new ::analyzer::Component("KRB", ::analyzer::krb::KRB_Analyzer::Instantiate));
|
||||
plugin::Configuration config;
|
||||
config.name = "Bro::KRB";
|
||||
config.description = "Kerberos analyzer";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue