From 7945c90adbff577a67a0908168189c5d20af096a Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 25 Aug 2008 07:49:48 +0000 Subject: [PATCH] new EAP-Identity handling uses ID_EAP in plugins --- src/charon/plugins/nm/nm_creds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/charon/plugins/nm/nm_creds.c b/src/charon/plugins/nm/nm_creds.c index cb06c7499..005234198 100644 --- a/src/charon/plugins/nm/nm_creds.c +++ b/src/charon/plugins/nm/nm_creds.c @@ -184,7 +184,9 @@ static void set_password(private_nm_creds_t *this, identification_t *id, { pthread_rwlock_wrlock(&this->lock); DESTROY_IF(this->user); - this->user = id->clone(id); + /* for EAP authentication, we use always use ID_EAP type */ + this->user = identification_create_from_encoding(ID_EAP, + id->get_encoding(id)); free(this->pass); this->pass = strdup(password); pthread_rwlock_unlock(&this->lock);