kernel-wfp: Depend on used RNG plugin features
authorMartin Willi <martin@revosec.ch>
Mon, 16 Dec 2013 11:12:57 +0000 (12:12 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 14:32:09 +0000 (16:32 +0200)
src/libcharon/plugins/kernel_wfp/kernel_wfp_plugin.c

index 3260c7e..e465b0a 100644 (file)
@@ -43,6 +43,8 @@ METHOD(plugin_t, get_features, int,
        static plugin_feature_t f[] = {
                PLUGIN_CALLBACK(kernel_ipsec_register, kernel_wfp_ipsec_create),
                        PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
+                               PLUGIN_DEPENDS(RNG, RNG_WEAK),
+                               PLUGIN_DEPENDS(RNG, RNG_STRONG),
        };
        *features = f;
        return countof(f);