Move Kerberos analyzer to the new plugin architecture.

This commit is contained in:
Vlad Grigorescu 2014-10-27 14:03:40 -04:00
parent e6d6ba6ec6
commit bcdeef6012
2 changed files with 17 additions and 7 deletions

View file

@ -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;
}
}