Socket plugins soft depend on the kernel-ipsec plugin feature
authorTobias Brunner <tobias@strongswan.org>
Fri, 7 Jun 2013 12:41:12 +0000 (14:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:18:17 +0000 (11:18 +0200)
On most platforms calls to methods to bypass the IKE sockets and enabling
UDP decapsulation are required.

src/libcharon/plugins/socket_default/socket_default_plugin.c
src/libcharon/plugins/socket_dynamic/socket_dynamic_plugin.c

index 01d9473..e89b742 100644 (file)
@@ -52,6 +52,7 @@ METHOD(plugin_t, get_features, int,
        static plugin_feature_t f[] = {
                PLUGIN_CALLBACK(socket_register, socket_default_socket_create),
                        PLUGIN_PROVIDE(CUSTOM, "socket"),
+                               PLUGIN_SDEPEND(CUSTOM, "kernel-ipsec"),
        };
        *features = f;
        return countof(f);
index c21d524..fdc9a7c 100644 (file)
@@ -40,6 +40,7 @@ METHOD(plugin_t, get_features, int,
        static plugin_feature_t f[] = {
                PLUGIN_CALLBACK(socket_register, socket_dynamic_socket_create),
                        PLUGIN_PROVIDE(CUSTOM, "socket"),
+                               PLUGIN_SDEPEND(CUSTOM, "kernel-ipsec"),
        };
        *features = f;
        return countof(f);