openssl: Fix registration of the PUBKEY builder
authorTobias Brunner <tobias@strongswan.org>
Sat, 18 Aug 2012 15:49:57 +0000 (17:49 +0200)
committerTobias Brunner <tobias@strongswan.org>
Sat, 18 Aug 2012 15:49:57 +0000 (17:49 +0200)
libtls drops support for RSA suites if it does not find an RSA backend
(final builder for RSA public keys).

src/libstrongswan/plugins/openssl/openssl_plugin.c

index 08d7d15..b69de98 100644 (file)
@@ -327,7 +327,7 @@ METHOD(plugin_t, get_features, int,
                        PLUGIN_PROVIDE(PRIVKEY, KEY_ANY),
                PLUGIN_REGISTER(PRIVKEY_GEN, openssl_rsa_private_key_gen, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY_GEN, KEY_RSA),
-               PLUGIN_REGISTER(PUBKEY, openssl_rsa_public_key_load, FALSE),
+               PLUGIN_REGISTER(PUBKEY, openssl_rsa_public_key_load, TRUE),
                        PLUGIN_PROVIDE(PUBKEY, KEY_RSA),
                PLUGIN_REGISTER(PUBKEY, openssl_rsa_public_key_load, TRUE),
                        PLUGIN_PROVIDE(PUBKEY, KEY_ANY),