new EAP-Identity handling uses ID_EAP in plugins

This commit is contained in:
Martin Willi
2008-08-25 07:49:48 +00:00
parent 1a109c9fc6
commit 7945c90adb
+3 -1
View File
@@ -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);