Lines Matching refs:eap
341 struct nai_realm_eap *eap; member
352 os_free(realms[i].eap); in nai_realm_free()
503 r->eap = os_calloc(r->eap_count, sizeof(struct nai_realm_eap)); in nai_realm_parse_realm()
504 if (r->eap == NULL) in nai_realm_parse_realm()
508 pos = nai_realm_parse_eap(&r->eap[e], pos, f_end); in nai_realm_parse_realm()
597 struct nai_realm_eap *eap) in nai_realm_cred_username() argument
599 if (eap_get_name(EAP_VENDOR_IETF, eap->method) == NULL) { in nai_realm_cred_username()
602 eap->method); in nai_realm_cred_username()
606 if (eap->method != EAP_TYPE_TTLS && eap->method != EAP_TYPE_PEAP && in nai_realm_cred_username()
607 eap->method != EAP_TYPE_FAST) { in nai_realm_cred_username()
611 eap->method); in nai_realm_cred_username()
615 if (eap->method == EAP_TYPE_PEAP || eap->method == EAP_TYPE_FAST) { in nai_realm_cred_username()
616 if (eap->inner_method && in nai_realm_cred_username()
617 eap_get_name(EAP_VENDOR_IETF, eap->inner_method) == NULL) { in nai_realm_cred_username()
620 eap->inner_method); in nai_realm_cred_username()
623 if (!eap->inner_method && in nai_realm_cred_username()
631 if (eap->method == EAP_TYPE_TTLS) { in nai_realm_cred_username()
632 if (eap->inner_method == 0 && eap->inner_non_eap == 0) in nai_realm_cred_username()
634 if (eap->inner_method && in nai_realm_cred_username()
635 eap_get_name(EAP_VENDOR_IETF, eap->inner_method) == NULL) { in nai_realm_cred_username()
638 eap->inner_method); in nai_realm_cred_username()
641 if (eap->inner_non_eap && in nai_realm_cred_username()
642 eap->inner_non_eap != NAI_REALM_INNER_NON_EAP_PAP && in nai_realm_cred_username()
643 eap->inner_non_eap != NAI_REALM_INNER_NON_EAP_CHAP && in nai_realm_cred_username()
644 eap->inner_non_eap != NAI_REALM_INNER_NON_EAP_MSCHAP && in nai_realm_cred_username()
645 eap->inner_non_eap != NAI_REALM_INNER_NON_EAP_MSCHAPV2) { in nai_realm_cred_username()
648 eap->inner_non_eap); in nai_realm_cred_username()
653 if (eap->inner_method && in nai_realm_cred_username()
654 eap->inner_method != EAP_TYPE_GTC && in nai_realm_cred_username()
655 eap->inner_method != EAP_TYPE_MSCHAPV2) { in nai_realm_cred_username()
658 eap->inner_method); in nai_realm_cred_username()
667 struct nai_realm_eap *eap) in nai_realm_cred_cert() argument
669 if (eap_get_name(EAP_VENDOR_IETF, eap->method) == NULL) { in nai_realm_cred_cert()
672 eap->method); in nai_realm_cred_cert()
676 if (eap->method != EAP_TYPE_TLS) { in nai_realm_cred_cert()
680 eap->method); in nai_realm_cred_cert()
709 struct nai_realm_eap *eap = &realm->eap[e]; in nai_realm_find_eap() local
711 nai_realm_cred_username(wpa_s, eap)) in nai_realm_find_eap()
712 return eap; in nai_realm_find_eap()
714 nai_realm_cred_cert(wpa_s, eap)) in nai_realm_find_eap()
715 return eap; in nai_realm_find_eap()
1001 ssid->eap.sim_num = cred->sim_num; in interworking_connect_3gpp()
1413 os_free(ssid->eap.eap_methods); in interworking_set_eap_params()
1414 ssid->eap.eap_methods = in interworking_set_eap_params()
1416 if (ssid->eap.eap_methods == NULL) in interworking_set_eap_params()
1418 os_memcpy(ssid->eap.eap_methods, cred->eap_method, in interworking_set_eap_params()
1420 ssid->eap.eap_methods[1].vendor = EAP_VENDOR_IETF; in interworking_set_eap_params()
1421 ssid->eap.eap_methods[1].method = EAP_TYPE_NONE; in interworking_set_eap_params()
1510 os_free(ssid->eap.phase1); in interworking_set_eap_params()
1511 ssid->eap.phase1 = os_strdup(cred->phase1); in interworking_set_eap_params()
1514 os_free(ssid->eap.phase2); in interworking_set_eap_params()
1515 ssid->eap.phase2 = os_strdup(cred->phase2); in interworking_set_eap_params()
1527 ssid->eap.ocsp = cred->ocsp; in interworking_set_eap_params()
1600 struct nai_realm_eap *eap = NULL; in interworking_connect_helper() local
1724 eap = nai_realm_find_eap(wpa_s, cred, &realm[i]); in interworking_connect_helper()
1725 if (eap) in interworking_connect_helper()
1729 if (!eap) { in interworking_connect_helper()
1769 eap->method), 0) < 0) in interworking_connect_helper()
1772 switch (eap->method) { in interworking_connect_helper()
1774 if (eap->inner_method) { in interworking_connect_helper()
1777 eap->inner_method)); in interworking_connect_helper()
1782 switch (eap->inner_non_eap) { in interworking_connect_helper()
1820 eap->inner_method ? eap->inner_method : in interworking_connect_helper()
1833 eap->method == EAP_TYPE_TTLS) < 0) in interworking_connect_helper()