mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Make the plugin structure more... legal.
This commit is contained in:
parent
88beb31270
commit
90bc5add6e
3 changed files with 4 additions and 32 deletions
28
src/analyzer/protocol/ssl/Plugin.cc
Normal file
28
src/analyzer/protocol/ssl/Plugin.cc
Normal file
|
@ -0,0 +1,28 @@
|
|||
// See the file in the main distribution directory for copyright.
|
||||
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "SSL.h"
|
||||
#include "DTLS.h"
|
||||
|
||||
namespace plugin {
|
||||
namespace Bro_SSL {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure()
|
||||
{
|
||||
AddComponent(new ::analyzer::Component("SSL", ::analyzer::ssl::SSL_Analyzer::Instantiate));
|
||||
AddComponent(new ::analyzer::Component("DTLS", ::analyzer::dtls::DTLS_Analyzer::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Bro::SSL";
|
||||
config.description = "SSL/TLS and DTLS analyzer";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue