Home | History | Annotate | Download | only in hostapd

Lines Matching refs:user

204 	struct hostapd_eap_user *user, *tail = NULL;
211 wpa_printf(MSG_ERROR, "EAP user file '%s' not found.", fname);
215 /* Lines: "user" METHOD,METHOD2 "password" (password optional) */
232 user = NULL;
240 user = os_zalloc(sizeof(*user));
241 if (user == NULL) {
242 wpa_printf(MSG_ERROR, "EAP user allocation failed");
245 user->force_version = -1;
261 user->identity = os_malloc(pos - start);
262 if (user->identity == NULL) {
267 os_memcpy(user->identity, start, pos - start);
268 user->identity_len = pos - start;
271 user->wildcard_prefix = 1;
300 user->methods[num_methods].method =
303 &user->methods[num_methods].vendor);
304 if (user->methods[num_methods].vendor ==
306 user->methods[num_methods].method == EAP_TYPE_NONE)
309 user->ttls_auth |= EAP_TTLS_AUTH_PAP;
313 user->ttls_auth |= EAP_TTLS_AUTH_CHAP;
317 user->ttls_auth |=
322 user->ttls_auth |=
340 if (num_methods == 0 && user->ttls_auth == 0) {
355 user->force_version = 0;
360 user->force_version = 1;
365 user->phase2 = 1;
381 user->password = os_malloc(pos - start);
382 if (user->password == NULL) {
387 os_memcpy(user->password, start, pos - start);
388 user->password_len = pos - start;
402 user->password = os_malloc(16);
403 if (user->password == NULL) {
408 if (hexstr2bin(pos, user->password, 16) < 0) {
413 user->password_len = 16;
414 user->password_hash = 1;
426 user->password = os_malloc((pos2 - pos) / 2);
427 if (user->password == NULL) {
432 if (hexstr2bin(pos, user->password,
438 user->password_len = (pos2 - pos) / 2;
445 user->phase2 = 1;
450 tail = conf->eap_user = user;
452 tail->next = user;
453 tail = user;
458 if (user) {
459 os_free(user->password);
460 os_free(user->identity);
461 os_free(user);