Make the plugin structure more... legal.

This commit is contained in:
Johanna Amann 2015-03-18 11:15:18 -07:00
parent 88beb31270
commit 90bc5add6e
3 changed files with 4 additions and 32 deletions

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