From: SC Lee Date: Mon, 9 Jul 2018 09:54:25 +0000 (+0800) Subject: charon-nm: Parse any type of private key in need_secrets X-Git-Tag: 5.7.0dr5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a41febb1cd4851d56289497698feee0f7775365;p=thirdparty%2Fstrongswan.git charon-nm: Parse any type of private key in need_secrets Previously, when the user supplied an ECDSA key for public key authentication, the user was always asked to provide a password, even if the key was not encrypted. Related: 954f73ea6e7e ("charon-nm: Parse any type of private key not only RSA") Closes strongswan/strongswan#108. --- diff --git a/src/charon-nm/nm/nm_service.c b/src/charon-nm/nm/nm_service.c index a12f008a75..fb9044d29a 100644 --- a/src/charon-nm/nm/nm_service.c +++ b/src/charon-nm/nm/nm_service.c @@ -698,7 +698,7 @@ static gboolean need_secrets(NMVpnServicePlugin *plugin, NMConnection *connectio /* try to load/decrypt the private key */ key = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, - KEY_RSA, BUILD_FROM_FILE, path, BUILD_END); + KEY_ANY, BUILD_FROM_FILE, path, BUILD_END); if (key) { key->destroy(key);