PEM loading soft-depends on MD5 only, as unencrypted files don't need MD5
authorMartin Willi <martin@revosec.ch>
Fri, 3 Aug 2012 13:25:17 +0000 (15:25 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 3 Aug 2012 13:25:17 +0000 (15:25 +0200)
Fixes #211.

src/libstrongswan/plugins/pem/pem_plugin.c

index e67cde5..d74ab9e 100644 (file)
@@ -47,19 +47,19 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY, KEY_ANY),
                                PLUGIN_DEPENDS(PRIVKEY, KEY_ANY),
-                               PLUGIN_DEPENDS(HASHER, HASH_MD5),
+                               PLUGIN_SDEPEND(HASHER, HASH_MD5),
                PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY, KEY_RSA),
                                PLUGIN_DEPENDS(PRIVKEY, KEY_RSA),
-                               PLUGIN_DEPENDS(HASHER, HASH_MD5),
+                               PLUGIN_SDEPEND(HASHER, HASH_MD5),
                PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY, KEY_ECDSA),
                                PLUGIN_DEPENDS(PRIVKEY, KEY_ECDSA),
-                               PLUGIN_DEPENDS(HASHER, HASH_MD5),
+                               PLUGIN_SDEPEND(HASHER, HASH_MD5),
                PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY, KEY_DSA),
                                PLUGIN_DEPENDS(PRIVKEY, KEY_DSA),
-                               PLUGIN_DEPENDS(HASHER, HASH_MD5),
+                               PLUGIN_SDEPEND(HASHER, HASH_MD5),
 
                /* public key PEM decoding */
                PLUGIN_REGISTER(PUBKEY, pem_public_key_load, FALSE),