aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/nm
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-02-18 15:03:33 +0000
committerMartin Willi <martin@strongswan.org>2009-02-18 15:03:33 +0000
commitd2ac1443d39331df9e559a7a681b5a7cf68465d3 (patch)
tree74e9d0cfa753b2b275339640fda5a310a1098ad7 /src/charon/plugins/nm
parent2d887e8e08bbf16ba295c16c89b1183fd56594ea (diff)
downloadstrongswan-d2ac1443d39331df9e559a7a681b5a7cf68465d3.tar.bz2
strongswan-d2ac1443d39331df9e559a7a681b5a7cf68465d3.tar.xz
always encode EAP usernames as ID_KEY_ID
Diffstat (limited to 'src/charon/plugins/nm')
-rw-r--r--src/charon/plugins/nm/nm_service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charon/plugins/nm/nm_service.c b/src/charon/plugins/nm/nm_service.c
index f90bfa448..1f2b6f723 100644
--- a/src/charon/plugins/nm/nm_service.c
+++ b/src/charon/plugins/nm/nm_service.c
@@ -223,7 +223,8 @@ static gboolean connect_(NMVPNPlugin *plugin, NMConnection *connection,
str = g_hash_table_lookup(settings->data, "user");
if (str)
{
- user = identification_create_from_string(str);
+ user = identification_create_from_encoding(ID_KEY_ID,
+ chunk_create(str, strlen(str)));
str = g_hash_table_lookup(settings->secrets, "password");
creds->set_username_password(creds, user, str);
}