charon-nm: Parse any type of private key not only RSA

This commit is contained in:
Tobias Brunner 2018-03-05 09:47:15 +01:00
parent 5808467ed1
commit 954f73ea6e
1 changed files with 1 additions and 1 deletions

View 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,