pkcs1: KEY_ANY public key decoder soft depends on specific decoders
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Mar 2014 11:20:05 +0000 (12:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 31 Mar 2014 12:32:44 +0000 (14:32 +0200)
src/libstrongswan/plugins/pkcs1/pkcs1_plugin.c

index b304a51..eb0903d 100644 (file)
@@ -46,6 +46,9 @@ METHOD(plugin_t, get_features, int,
                        PLUGIN_PROVIDE(PRIVKEY, KEY_RSA),
                PLUGIN_REGISTER(PUBKEY, pkcs1_public_key_load, FALSE),
                        PLUGIN_PROVIDE(PUBKEY, KEY_ANY),
+                               PLUGIN_SDEPEND(PUBKEY, KEY_RSA),
+                               PLUGIN_SDEPEND(PUBKEY, KEY_ECDSA),
+                               PLUGIN_SDEPEND(PUBKEY, KEY_DSA),
                PLUGIN_REGISTER(PUBKEY, pkcs1_public_key_load, FALSE),
                        PLUGIN_PROVIDE(PUBKEY, KEY_RSA),
        };