From: Tobias Brunner Date: Mon, 5 Mar 2018 08:47:15 +0000 (+0100) Subject: charon-nm: Parse any type of private key not only RSA X-Git-Tag: 5.6.3dr1~34^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=954f73ea6e7e444012b61d2fbd24807f8bf6aa1f;p=thirdparty%2Fstrongswan.git charon-nm: Parse any type of private key not only RSA --- diff --git a/src/charon-nm/nm/nm_service.c b/src/charon-nm/nm/nm_service.c index c427331811..82e126ace9 100644 --- a/src/charon-nm/nm/nm_service.c +++ b/src/charon-nm/nm/nm_service.c @@ -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,