charon-nm: Parse any type of private key not only RSA
authorTobias Brunner <tobias@strongswan.org>
Mon, 5 Mar 2018 08:47:15 +0000 (09:47 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 7 Mar 2018 14:23:03 +0000 (15:23 +0100)
src/charon-nm/nm/nm_service.c

index c427331..82e126a 100644 (file)
@@ -492,7 +492,7 @@ static gboolean connect_(NMVpnServicePlugin *plugin, NMConnection *connection,
                                        priv->creds->set_key_password(priv->creds, secret);
                                }
                                private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY,
-                                                               KEY_RSA, BUILD_FROM_FILE, str, BUILD_END);
+                                                               KEY_ANY, BUILD_FROM_FILE, str, BUILD_END);
                                if (!private)
                                {
                                        g_set_error(err, NM_VPN_PLUGIN_ERROR,