diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-09-04 14:31:46 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-09-12 01:44:49 +0200 |
commit | 5d45bcfc5f8ec1d2040d2423217facd380f3121d (patch) | |
tree | 43e5694ddc9247ca97b0c83ad6a914d6d3923ee8 /src | |
parent | 9af44ef5d9534cf6a12c0ddd90f9cad5648dcd28 (diff) | |
download | strongswan-5d45bcfc5f8ec1d2040d2423217facd380f3121d.tar.bz2 strongswan-5d45bcfc5f8ec1d2040d2423217facd380f3121d.tar.xz |
pt-tls-client: Abort if no tnccs-manager is available
Diffstat (limited to 'src')
-rw-r--r-- | src/pt-tls-client/pt-tls-client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pt-tls-client/pt-tls-client.c b/src/pt-tls-client/pt-tls-client.c index a3328b576..4e108ad4c 100644 --- a/src/pt-tls-client/pt-tls-client.c +++ b/src/pt-tls-client/pt-tls-client.c @@ -161,12 +161,19 @@ static void cleanup() */ static void init() { + plugin_feature_t features[] = { + PLUGIN_NOOP, + PLUGIN_PROVIDE(CUSTOM, "pt-tls-client"), + PLUGIN_DEPENDS(CUSTOM, "tnccs-manager"), + }; library_init(NULL); libtnccs_init(); dbg = dbg_pt_tls; options = options_create(); + lib->plugins->add_static_features(lib->plugins, "pt-tls-client", features, + countof(features), TRUE); if (!lib->plugins->load(lib->plugins, lib->settings->get_str(lib->settings, "pt-tls-client.load", PLUGINS))) { |