From 3a41febb1cd4851d56289497698feee0f7775365 Mon Sep 17 00:00:00 2001 From: SC Lee Date: Mon, 9 Jul 2018 17:54:25 +0800 Subject: [PATCH] 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. --- src/charon-nm/nm/nm_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charon-nm/nm/nm_service.c b/src/charon-nm/nm/nm_service.c index a12f008a7..fb9044d29 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);