From: Tobias Brunner Date: Mon, 15 Jul 2013 08:48:19 +0000 (+0200) Subject: pkcs12: Add plugin dependencies with soft dependencies on the most common algorithms X-Git-Tag: 5.1.0rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0b868f79ebc06efabd14df982fe9ca1ecef7de5;p=thirdparty%2Fstrongswan.git pkcs12: Add plugin dependencies with soft dependencies on the most common algorithms --- diff --git a/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c b/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c index ae0fb90930..902d2971bb 100644 --- a/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c +++ b/src/libstrongswan/plugins/pkcs12/pkcs12_plugin.c @@ -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);