diff options
author | Martin Willi <martin@revosec.ch> | 2010-05-05 13:48:10 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-05 13:49:56 +0200 |
commit | 026b0058d546812b3fceaeba8784a00be45b54e1 (patch) | |
tree | 01342cde3a19c14e1bdf7ec2003a568c16a5081e /src/libstrongswan/plugins/openssl/openssl_plugin.c | |
parent | 75d4322d68b74538f20c5e5c74eba861577f4671 (diff) | |
download | strongswan-026b0058d546812b3fceaeba8784a00be45b54e1.tar.bz2 strongswan-026b0058d546812b3fceaeba8784a00be45b54e1.tar.xz |
Support decoding of subjectPublicKeyInfo in openssl without pkcs1 plugin
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_plugin.c b/src/libstrongswan/plugins/openssl/openssl_plugin.c index c1545ffb8..558eba096 100644 --- a/src/libstrongswan/plugins/openssl/openssl_plugin.c +++ b/src/libstrongswan/plugins/openssl/openssl_plugin.c @@ -306,6 +306,8 @@ plugin_t *openssl_plugin_create() (builder_function_t)openssl_rsa_private_key_connect); lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA, (builder_function_t)openssl_rsa_public_key_load); + lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_ANY, + (builder_function_t)openssl_rsa_public_key_load); /* ec */ lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_ECDSA, |