| 19 | namespace Security { |
| 20 | |
| 21 | int |
| 22 | BuiltInPluginLoader::init(int /*argc*/, ACE_TCHAR* /*argv*/[]) |
| 23 | { |
| 24 | const OPENDDS_STRING PLUGIN_NAME("BuiltIn"); |
| 25 | SecurityPluginInst_rch plugin = TheSecurityRegistry->get_plugin_inst( |
| 26 | PLUGIN_NAME, false /* don't attempt to load the plugin */); |
| 27 | if (!plugin) { |
| 28 | plugin = DCPS::make_rch<BuiltInSecurityPluginInst>(); |
| 29 | TheSecurityRegistry->register_plugin(PLUGIN_NAME, plugin); |
| 30 | } |
| 31 | |
| 32 | SecurityConfig_rch default_config = |
| 33 | TheSecurityRegistry->create_config(SecurityRegistry::DEFAULT_CONFIG_NAME, |
| 34 | plugin); |
| 35 | |
| 36 | if (TheSecurityRegistry->has_no_configs()) { |
| 37 | TheSecurityRegistry->default_config(default_config); |
| 38 | } |
| 39 | |
| 40 | TheSecurityRegistry->builtin_config(default_config); |
| 41 | |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | ACE_FACTORY_DEFINE(OpenDDS_Security, BuiltInPluginLoader); |
| 46 | ACE_STATIC_SVC_DEFINE( |
nothing calls this directly
no test coverage detected