Home
last modified time | relevance | path

Searched refs:encr_type (Results 1 – 25 of 28) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_attr_process.c139 const u8 *encr_type) in wps_process_cred_encr_type() argument
141 if (encr_type == NULL) { in wps_process_cred_encr_type()
147 cred->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
149 cred->encr_type); in wps_process_cred_encr_type()
175 cred->encr_type == WPS_ENCR_NONE) { in wps_process_cred_network_key()
255 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_cred()
274 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_ap_settings()
Dwps_enrollee.c279 u16 encr_type = wps->wps->ap_encr_type; in wps_build_cred_encr_type() local
287 if (encr_type & WPS_ENCR_AES) in wps_build_cred_encr_type()
288 encr_type = WPS_ENCR_AES; in wps_build_cred_encr_type()
289 else if (encr_type & WPS_ENCR_TKIP) in wps_build_cred_encr_type()
290 encr_type = WPS_ENCR_TKIP; in wps_build_cred_encr_type()
293 wpa_printf(MSG_DEBUG, "WPS: * Encryption Type (0x%x)", encr_type); in wps_build_cred_encr_type()
296 wpabuf_put_be16(msg, encr_type); in wps_build_cred_encr_type()
740 if (!(wps->cred.encr_type & in wps_process_cred_e()
742 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e()
750 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e()
[all …]
Dwps_registrar.c1586 cred->encr_type); in wps_build_cred_encr_type()
1589 wpabuf_put_be16(msg, cred->encr_type); in wps_build_cred_encr_type()
1664 wps->cred.encr_type = WPS_ENCR_AES; in wps_build_cred()
1702 wps->wps->encr_types_wpa, wps->encr_type); in wps_build_cred()
1704 wps->encr_type &= wps->wps->encr_types_rsn; in wps_build_cred()
1706 wps->encr_type &= wps->wps->encr_types_wpa; in wps_build_cred()
1709 if (wps->encr_type & WPS_ENCR_AES) in wps_build_cred()
1710 wps->encr_type = WPS_ENCR_AES; in wps_build_cred()
1711 else if (wps->encr_type & WPS_ENCR_TKIP) in wps_build_cred()
1712 wps->encr_type = WPS_ENCR_TKIP; in wps_build_cred()
[all …]
Dwps_validate.c988 const u8 *encr_type, int mandatory) in wps_validate_network_key() argument
998 if (((encr_type == NULL || WPA_GET_BE16(encr_type) != WPS_ENCR_WEP) && in wps_validate_network_key()
1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred()
1047 attr.encr_type, 1) || in wps_validate_cred()
1743 wps_validate_encr_type(attr.encr_type, !ap) || in wps_validate_m7_encr()
1746 attr.encr_type, !ap) || in wps_validate_m7_encr()
1815 wps_validate_encr_type(attr.encr_type, ap) || in wps_validate_m8_encr()
Dwps_attr_parse.h46 const u8 *encr_type; /* 2 octets */ member
Dwps_i.h89 u16 encr_type; member
Dwps_common.c372 data.encr_type = wps->encr_types; in wps_get_oob_cred()
394 cred.encr_type = WPS_ENCR_TKIP | WPS_ENCR_AES; in wps_get_oob_cred()
Dwps_attr_parse.c409 attr->encr_type = pos; in wps_set_attr()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_process.c140 const u8 *encr_type) in wps_process_cred_encr_type() argument
142 if (encr_type == NULL) { in wps_process_cred_encr_type()
148 cred->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
150 cred->encr_type); in wps_process_cred_encr_type()
176 cred->encr_type == WPS_ENCR_NONE) { in wps_process_cred_network_key()
256 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_cred()
275 wps_process_cred_encr_type(cred, attr->encr_type) || in wps_process_ap_settings()
Dwps_enrollee.c279 u16 encr_type = wps->wps->ap_encr_type; in wps_build_cred_encr_type() local
287 if (encr_type & WPS_ENCR_AES) in wps_build_cred_encr_type()
288 encr_type = WPS_ENCR_AES; in wps_build_cred_encr_type()
289 else if (encr_type & WPS_ENCR_TKIP) in wps_build_cred_encr_type()
290 encr_type = WPS_ENCR_TKIP; in wps_build_cred_encr_type()
293 wpa_printf(MSG_DEBUG, "WPS: * Encryption Type (0x%x)", encr_type); in wps_build_cred_encr_type()
296 wpabuf_put_be16(msg, encr_type); in wps_build_cred_encr_type()
740 if (!(wps->cred.encr_type & in wps_process_cred_e()
742 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e()
750 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e()
[all …]
Dwps_registrar.c1564 cred->encr_type); in wps_build_cred_encr_type()
1567 wpabuf_put_be16(msg, cred->encr_type); in wps_build_cred_encr_type()
1644 wps->cred.encr_type = WPS_ENCR_AES; in wps_build_cred()
1684 wps->wps->encr_types_wpa, wps->encr_type); in wps_build_cred()
1686 wps->encr_type &= wps->wps->encr_types_rsn; in wps_build_cred()
1688 wps->encr_type &= wps->wps->encr_types_wpa; in wps_build_cred()
1691 if (wps->encr_type & WPS_ENCR_AES) in wps_build_cred()
1692 wps->encr_type = WPS_ENCR_AES; in wps_build_cred()
1694 else if (wps->encr_type & WPS_ENCR_TKIP) in wps_build_cred()
1695 wps->encr_type = WPS_ENCR_TKIP; in wps_build_cred()
[all …]
Dwps_validate.c988 const u8 *encr_type, int mandatory) in wps_validate_network_key() argument
998 if (((encr_type == NULL || WPA_GET_BE16(encr_type) != WPS_ENCR_WEP) && in wps_validate_network_key()
1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred()
1047 attr.encr_type, 1) || in wps_validate_cred()
1743 wps_validate_encr_type(attr.encr_type, !ap) || in wps_validate_m7_encr()
1746 attr.encr_type, !ap) || in wps_validate_m7_encr()
1815 wps_validate_encr_type(attr.encr_type, ap) || in wps_validate_m8_encr()
Dwps_attr_parse.h46 const u8 *encr_type; /* 2 octets */ member
Dwps_i.h89 u16 encr_type; member
Dwps_common.c372 data.encr_type = wps->encr_types; in wps_get_oob_cred()
394 cred.encr_type = WPS_ENCR_TKIP | WPS_ENCR_AES; in wps_get_oob_cred()
Dwps_attr_parse.c409 attr->encr_type = pos; in wps_set_attr()
Dwps.h51 u16 encr_type; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_wsc.c104 cred->encr_type = WPS_ENCR_NONE; in eap_wsc_new_ap_settings()
107 cred->encr_type = WPS_ENCR_WEP; in eap_wsc_new_ap_settings()
110 cred->encr_type = WPS_ENCR_TKIP; in eap_wsc_new_ap_settings()
112 cred->encr_type = WPS_ENCR_AES; in eap_wsc_new_ap_settings()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_wsc.c104 cred->encr_type = WPS_ENCR_NONE; in eap_wsc_new_ap_settings()
107 cred->encr_type = WPS_ENCR_WEP; in eap_wsc_new_ap_settings()
110 cred->encr_type = WPS_ENCR_TKIP; in eap_wsc_new_ap_settings()
112 cred->encr_type = WPS_ENCR_AES; in eap_wsc_new_ap_settings()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dwps_hostapd.c344 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_reconfig_in_memory()
350 if (cred->encr_type & WPS_ENCR_TKIP) in hapd_wps_reconfig_in_memory()
428 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in hapd_wps_cred_cb()
454 hapd->wps->encr_types = cred->encr_type; in hapd_wps_cred_cb()
455 hapd->wps->encr_types_rsn = cred->encr_type; in hapd_wps_cred_cb()
456 hapd->wps->encr_types_wpa = cred->encr_type; in hapd_wps_cred_cb()
458 hapd->wps->ap_encr_type = cred->encr_type; in hapd_wps_cred_cb()
574 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_cred_cb()
582 if (cred->encr_type & WPS_ENCR_TKIP) { in hapd_wps_cred_cb()
1760 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwps_hostapd.c392 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_reconfig_in_memory()
399 if (cred->encr_type & WPS_ENCR_TKIP) in hapd_wps_reconfig_in_memory()
476 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in hapd_wps_cred_cb()
502 hapd->wps->encr_types = cred->encr_type; in hapd_wps_cred_cb()
503 hapd->wps->encr_types_rsn = cred->encr_type; in hapd_wps_cred_cb()
504 hapd->wps->encr_types_wpa = cred->encr_type; in hapd_wps_cred_cb()
506 hapd->wps->ap_encr_type = cred->encr_type; in hapd_wps_cred_cb()
624 if (cred->encr_type & WPS_ENCR_AES) { in hapd_wps_cred_cb()
633 if (cred->encr_type & WPS_ENCR_TKIP) { in hapd_wps_cred_cb()
1947 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dwps_supplicant.c402 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in wpa_supplicant_wps_cred()
488 switch (cred->encr_type) { in wpa_supplicant_wps_cred()
834 cred->auth_type, cred->encr_type, key_str); in wpa_supplicant_wps_event_er_ap_settings()
2060 cred->encr_type = WPS_ENCR_AES; in wpas_wps_network_to_cred()
2062 cred->encr_type = WPS_ENCR_TKIP; in wpas_wps_network_to_cred()
2075 cred->encr_type = WPS_ENCR_NONE; in wpas_wps_network_to_cred()
2150 cred.encr_type = WPS_ENCR_NONE; in wpas_wps_er_config()
2153 cred.encr_type = WPS_ENCR_WEP; in wpas_wps_er_config()
2156 cred.encr_type = WPS_ENCR_TKIP; in wpas_wps_er_config()
2158 cred.encr_type = WPS_ENCR_AES; in wpas_wps_er_config()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dwps_supplicant.c397 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in wpa_supplicant_wps_cred()
483 switch (cred->encr_type) { in wpa_supplicant_wps_cred()
826 cred->auth_type, cred->encr_type, key_str); in wpa_supplicant_wps_event_er_ap_settings()
2020 cred->encr_type = WPS_ENCR_AES; in wpas_wps_network_to_cred()
2022 cred->encr_type = WPS_ENCR_TKIP; in wpas_wps_network_to_cred()
2035 cred->encr_type = WPS_ENCR_NONE; in wpas_wps_network_to_cred()
2110 cred.encr_type = WPS_ENCR_NONE; in wpas_wps_er_config()
2113 cred.encr_type = WPS_ENCR_WEP; in wpas_wps_er_config()
2116 cred.encr_type = WPS_ENCR_TKIP; in wpas_wps_er_config()
2118 cred.encr_type = WPS_ENCR_AES; in wpas_wps_er_config()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/dbus/
Ddbus_new.c732 char *encr_type[3]; /* we have three possible encryption types */ in wpas_dbus_signal_wps_cred() local
762 if (cred->encr_type & WPS_ENCR_NONE) in wpas_dbus_signal_wps_cred()
763 encr_type[et_num++] = "none"; in wpas_dbus_signal_wps_cred()
764 if (cred->encr_type & WPS_ENCR_TKIP) in wpas_dbus_signal_wps_cred()
765 encr_type[et_num++] = "tkip"; in wpas_dbus_signal_wps_cred()
766 if (cred->encr_type & WPS_ENCR_AES) in wpas_dbus_signal_wps_cred()
767 encr_type[et_num++] = "aes"; in wpas_dbus_signal_wps_cred()
780 (const char **) encr_type, in wpas_dbus_signal_wps_cred()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/dbus/
Ddbus_new.c732 char *encr_type[3]; /* we have three possible encryption types */ in wpas_dbus_signal_wps_cred() local
764 if (cred->encr_type & WPS_ENCR_NONE) in wpas_dbus_signal_wps_cred()
765 encr_type[et_num++] = "none"; in wpas_dbus_signal_wps_cred()
767 if (cred->encr_type & WPS_ENCR_TKIP) in wpas_dbus_signal_wps_cred()
768 encr_type[et_num++] = "tkip"; in wpas_dbus_signal_wps_cred()
770 if (cred->encr_type & WPS_ENCR_AES) in wpas_dbus_signal_wps_cred()
771 encr_type[et_num++] = "aes"; in wpas_dbus_signal_wps_cred()
784 (const char **) encr_type, in wpas_dbus_signal_wps_cred()

12