]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 c427331811e1d3de10bdb4fc6539076f7685a714..82e126ace9ef0f077a05d34ced0b9ec7011f0bcf 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,