| 381 | } |
| 382 | |
| 383 | SecurityPluginInst_rch SecurityRegistry::get_plugin_inst( |
| 384 | const OPENDDS_STRING& plugin_name, bool attempt_fix) |
| 385 | { |
| 386 | GuardType guard(lock_); |
| 387 | |
| 388 | SecurityPluginInst_rch plugin_inst; |
| 389 | |
| 390 | if (find(registered_plugins_, plugin_name, plugin_inst) != 0 && attempt_fix) { |
| 391 | guard.release(); |
| 392 | // Not present, try to load library |
| 393 | load_security_plugin_lib(plugin_name); |
| 394 | guard.acquire(); |
| 395 | |
| 396 | // Try to find it again |
| 397 | find(registered_plugins_, plugin_name, plugin_inst); |
| 398 | } |
| 399 | |
| 400 | return plugin_inst; |
| 401 | } |
| 402 | |
| 403 | bool SecurityRegistry::has_no_configs() const |
| 404 | { |