x509: CERT_DECODE actually requires KEY_ANY
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Mar 2014 11:20:55 +0000 (12:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 31 Mar 2014 12:32:44 +0000 (14:32 +0200)
More specific decoders might still be needed, but the x509
plugin should not care which ones.

src/libstrongswan/plugins/x509/x509_plugin.c

index 15fea7e..54bef73 100644 (file)
@@ -52,9 +52,7 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_REGISTER(CERT_DECODE, x509_cert_load, TRUE),
                        PLUGIN_PROVIDE(CERT_DECODE, CERT_X509),
                                PLUGIN_DEPENDS(HASHER, HASH_SHA1),
-                               PLUGIN_SDEPEND(PUBKEY, KEY_RSA),
-                               PLUGIN_SDEPEND(PUBKEY, KEY_ECDSA),
-                               PLUGIN_SDEPEND(PUBKEY, KEY_DSA),
+                               PLUGIN_DEPENDS(PUBKEY, KEY_ANY),
 
                PLUGIN_REGISTER(CERT_ENCODE, x509_ac_gen, FALSE),
                        PLUGIN_PROVIDE(CERT_ENCODE, CERT_X509_AC),