mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58: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,11 +1,25 @@
|
|||
// See the file in the main distribution directory for copyright.
|
||||
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "SSL.h"
|
||||
|
||||
BRO_PLUGIN_BEGIN(Bro, SSL)
|
||||
BRO_PLUGIN_DESCRIPTION("SSL analyzer");
|
||||
BRO_PLUGIN_ANALYZER("SSL", ssl::SSL_Analyzer);
|
||||
BRO_PLUGIN_BIF_FILE(events);
|
||||
BRO_PLUGIN_BIF_FILE(functions);
|
||||
BRO_PLUGIN_END
|
||||
namespace plugin {
|
||||
namespace Bro_SSL {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new ::analyzer::Component("SSL", ::analyzer::ssl::SSL_Analyzer::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Bro::SSL";
|
||||
config.description = "SSL analyzer";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue