mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Moving existing built-in plugins over to new interface.
This commit is contained in:
parent
ea01a1be30
commit
2c34101394
85 changed files with 944 additions and 293 deletions
|
@ -1,10 +1,25 @@
|
|||
// See the file in the main distribution directory for copyright.
|
||||
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "SSH.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(Bro, SSH)
|
||||
BRO_PLUGIN_DESCRIPTION("SSH analyzer");
|
||||
BRO_PLUGIN_ANALYZER("SSH", ssh::SSH_Analyzer);
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_END
|
||||
namespace plugin {
|
||||
namespace Bro_SSH {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new ::analyzer::Component("SSH", ::analyzer::ssh::SSH_Analyzer::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Bro::SSH";
|
||||
config.description = "SSH analyzer";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public:
|
|||
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
|
||||
static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new SSH_Analyzer(conn); }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue