pkcs12: Add plugin dependencies with soft dependencies on the most common algorithms
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 08:48:19 +0000 (10:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 08:48:19 +0000 (10:48 +0200)
src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c

index ae0fb90..902d297 100644 (file)
@@ -44,6 +44,12 @@ METHOD(plugin_t, get_features, int,
        static plugin_feature_t f[] = {
                PLUGIN_REGISTER(CONTAINER_DECODE, pkcs12_decode, FALSE),
                        PLUGIN_PROVIDE(CONTAINER_DECODE, CONTAINER_PKCS12),
+                               PLUGIN_DEPENDS(CONTAINER_DECODE, CONTAINER_PKCS7),
+                               PLUGIN_SDEPEND(CERT_DECODE, CERT_X509),
+                               PLUGIN_SDEPEND(PRIVKEY, KEY_ANY),
+                               PLUGIN_SDEPEND(HASHER, HASH_SHA1),
+                               PLUGIN_SDEPEND(CRYPTER, ENCR_3DES, 24),
+                               PLUGIN_SDEPEND(CRYPTER, ENCR_RC2_CBC, 0),
        };
        *features = f;
        return countof(f);