]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 01d9473bfd3684fed000451f32eafa123745973d..e89b74279e2087e0e5dc07c0e438863cd0f142a7 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 c21d5240ef21bc2e4f8c19df65441052e35c64d6..fdc9a7cf9727418637b15288b9fe1a89b25fad69 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);