Lines Matching refs:eap

1341 	if (!errors && ssid->eap.eap_methods) {  in wpa_config_parse_eap()
1345 prev_m = ssid->eap.eap_methods; in wpa_config_parse_eap()
1369 os_free(ssid->eap.eap_methods); in wpa_config_parse_eap()
1370 ssid->eap.eap_methods = methods; in wpa_config_parse_eap()
1381 const struct eap_method_type *eap_methods = ssid->eap.eap_methods; in wpa_config_write_eap()
1419 if (!ssid->eap.password) in wpa_config_parse_password()
1422 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password()
1423 ssid->eap.password = NULL; in wpa_config_parse_password()
1424 ssid->eap.password_len = 0; in wpa_config_parse_password()
1433 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password()
1434 ssid->eap.password = (u8 *) name; in wpa_config_parse_password()
1435 ssid->eap.password_len = os_strlen(name); in wpa_config_parse_password()
1436 ssid->eap.flags &= ~EAP_CONFIG_FLAGS_PASSWORD_NTHASH; in wpa_config_parse_password()
1437 ssid->eap.flags |= EAP_CONFIG_FLAGS_EXT_PASSWORD; in wpa_config_parse_password()
1455 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password()
1456 ssid->eap.password = (u8 *) tmp; in wpa_config_parse_password()
1457 ssid->eap.password_len = res_len; in wpa_config_parse_password()
1458 ssid->eap.flags &= ~EAP_CONFIG_FLAGS_PASSWORD_NTHASH; in wpa_config_parse_password()
1459 ssid->eap.flags &= ~EAP_CONFIG_FLAGS_EXT_PASSWORD; in wpa_config_parse_password()
1484 if (ssid->eap.password && ssid->eap.password_len == 16 && in wpa_config_parse_password()
1485 os_memcmp(ssid->eap.password, hash, 16) == 0 && in wpa_config_parse_password()
1486 (ssid->eap.flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH)) { in wpa_config_parse_password()
1490 bin_clear_free(ssid->eap.password, ssid->eap.password_len); in wpa_config_parse_password()
1491 ssid->eap.password = hash; in wpa_config_parse_password()
1492 ssid->eap.password_len = 16; in wpa_config_parse_password()
1493 ssid->eap.flags |= EAP_CONFIG_FLAGS_PASSWORD_NTHASH; in wpa_config_parse_password()
1494 ssid->eap.flags &= ~EAP_CONFIG_FLAGS_EXT_PASSWORD; in wpa_config_parse_password()
1506 if (ssid->eap.password == NULL) in wpa_config_write_password()
1510 if (ssid->eap.flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) { in wpa_config_write_password()
1511 buf = os_zalloc(4 + ssid->eap.password_len + 1); in wpa_config_write_password()
1515 os_memcpy(buf + 4, ssid->eap.password, ssid->eap.password_len); in wpa_config_write_password()
1520 if (!(ssid->eap.flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH)) { in wpa_config_write_password()
1522 ssid->eap.password, ssid->eap.password_len); in wpa_config_write_password()
1530 wpa_snprintf_hex(buf + 5, 32 + 1, ssid->eap.password, 16); in wpa_config_write_password()
1824 #define _STRe(f) #f, wpa_config_parse_str, OFFSET(eap.f)
1827 #define _STRe(f) #f, wpa_config_parse_str, wpa_config_write_str, OFFSET(eap.f)
1838 #define _STR_LENe(f) _STRe(f), OFFSET(eap.f ## _len)
1851 #define _INTe(f) #f, wpa_config_parse_int, OFFSET(eap.f), (void *) 0
1856 OFFSET(eap.f), (void *) 0
1919 { FUNC(eap) },
2158 static void eap_peer_config_free(struct eap_peer_config *eap) in eap_peer_config_free() argument
2160 os_free(eap->eap_methods); in eap_peer_config_free()
2161 bin_clear_free(eap->identity, eap->identity_len); in eap_peer_config_free()
2162 os_free(eap->anonymous_identity); in eap_peer_config_free()
2163 bin_clear_free(eap->password, eap->password_len); in eap_peer_config_free()
2164 os_free(eap->ca_cert); in eap_peer_config_free()
2165 os_free(eap->ca_path); in eap_peer_config_free()
2166 os_free(eap->client_cert); in eap_peer_config_free()
2167 os_free(eap->private_key); in eap_peer_config_free()
2168 str_clear_free(eap->private_key_passwd); in eap_peer_config_free()
2169 os_free(eap->dh_file); in eap_peer_config_free()
2170 os_free(eap->subject_match); in eap_peer_config_free()
2171 os_free(eap->altsubject_match); in eap_peer_config_free()
2172 os_free(eap->domain_suffix_match); in eap_peer_config_free()
2173 os_free(eap->domain_match); in eap_peer_config_free()
2174 os_free(eap->ca_cert2); in eap_peer_config_free()
2175 os_free(eap->ca_path2); in eap_peer_config_free()
2176 os_free(eap->client_cert2); in eap_peer_config_free()
2177 os_free(eap->private_key2); in eap_peer_config_free()
2178 str_clear_free(eap->private_key2_passwd); in eap_peer_config_free()
2179 os_free(eap->dh_file2); in eap_peer_config_free()
2180 os_free(eap->subject_match2); in eap_peer_config_free()
2181 os_free(eap->altsubject_match2); in eap_peer_config_free()
2182 os_free(eap->domain_suffix_match2); in eap_peer_config_free()
2183 os_free(eap->domain_match2); in eap_peer_config_free()
2184 os_free(eap->phase1); in eap_peer_config_free()
2185 os_free(eap->phase2); in eap_peer_config_free()
2186 os_free(eap->pcsc); in eap_peer_config_free()
2187 str_clear_free(eap->pin); in eap_peer_config_free()
2188 os_free(eap->engine_id); in eap_peer_config_free()
2189 os_free(eap->key_id); in eap_peer_config_free()
2190 os_free(eap->cert_id); in eap_peer_config_free()
2191 os_free(eap->ca_cert_id); in eap_peer_config_free()
2192 os_free(eap->key2_id); in eap_peer_config_free()
2193 os_free(eap->cert2_id); in eap_peer_config_free()
2194 os_free(eap->ca_cert2_id); in eap_peer_config_free()
2195 str_clear_free(eap->pin2); in eap_peer_config_free()
2196 os_free(eap->engine2_id); in eap_peer_config_free()
2197 os_free(eap->otp); in eap_peer_config_free()
2198 os_free(eap->pending_req_otp); in eap_peer_config_free()
2199 os_free(eap->pac_file); in eap_peer_config_free()
2200 bin_clear_free(eap->new_password, eap->new_password_len); in eap_peer_config_free()
2201 str_clear_free(eap->external_sim_resp); in eap_peer_config_free()
2202 os_free(eap->openssl_ciphers); in eap_peer_config_free()
2222 eap_peer_config_free(&ssid->eap); in wpa_config_free_ssid()
2493 ssid->eap.fragment_size = DEFAULT_FRAGMENT_SIZE; in wpa_config_set_network_defaults()
2494 ssid->eap.sim_num = DEFAULT_USER_SELECTED_SIM; in wpa_config_set_network_defaults()