IMCs and IMVs might depend on X.509 certificates or trusted public keys
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 28 Jun 2012 15:55:02 +0000 (17:55 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 28 Jun 2012 15:55:02 +0000 (17:55 +0200)
src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c
src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c

index a25b184..859dded 100644 (file)
@@ -44,6 +44,8 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_CALLBACK(tnc_manager_register, tnc_imc_manager_create),
                        PLUGIN_PROVIDE(CUSTOM, "imc-manager"),
                                PLUGIN_DEPENDS(CUSTOM, "tnccs-manager"),
                PLUGIN_CALLBACK(tnc_manager_register, tnc_imc_manager_create),
                        PLUGIN_PROVIDE(CUSTOM, "imc-manager"),
                                PLUGIN_DEPENDS(CUSTOM, "tnccs-manager"),
+                               PLUGIN_SDEPEND(CERT_DECODE, CERT_X509),
+                               PLUGIN_SDEPEND(CERT_DECODE, CERT_TRUSTED_PUBKEY),
        };
        *features = f;
        return countof(f);
        };
        *features = f;
        return countof(f);
index c16f6b9..612c98a 100644 (file)
@@ -47,6 +47,8 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_CALLBACK(tnc_manager_register, tnc_imv_manager_create),
                        PLUGIN_PROVIDE(CUSTOM, "imv-manager"),
                                PLUGIN_DEPENDS(CUSTOM, "tnccs-manager"),
                PLUGIN_CALLBACK(tnc_manager_register, tnc_imv_manager_create),
                        PLUGIN_PROVIDE(CUSTOM, "imv-manager"),
                                PLUGIN_DEPENDS(CUSTOM, "tnccs-manager"),
+                               PLUGIN_SDEPEND(CERT_DECODE, CERT_X509),
+                               PLUGIN_SDEPEND(CERT_DECODE, CERT_TRUSTED_PUBKEY),
        };
        *features = f;
        return countof(f);
        };
        *features = f;
        return countof(f);