Searched refs:encr_type (Results 1 – 14 of 14) sorted by relevance
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_attr_process.c | 140 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()
|
H A D | wps_enrollee.c | 279 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() 739 if (!(wps->cred.encr_type & in wps_process_cred_e() 741 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e() 749 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e() [all …]
|
H A D | wps_registrar.c | 1563 cred->encr_type); in wps_build_cred_encr_type() 1566 wpabuf_put_be16(msg, cred->encr_type); in wps_build_cred_encr_type() 1643 wps->cred.encr_type = WPS_ENCR_AES; in wps_build_cred() 1683 wps->wps->encr_types_wpa, wps->encr_type); in wps_build_cred() 1685 wps->encr_type &= wps->wps->encr_types_rsn; in wps_build_cred() 1687 wps->encr_type &= wps->wps->encr_types_wpa; in wps_build_cred() 1690 if (wps->encr_type & WPS_ENCR_AES) in wps_build_cred() 1691 wps->encr_type = WPS_ENCR_AES; in wps_build_cred() 1693 else if (wps->encr_type & WPS_ENCR_TKIP) in wps_build_cred() 1694 wps->encr_type = WPS_ENCR_TKIP; in wps_build_cred() [all …]
|
H A D | wps_validate.c | 988 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()
|
H A D | wps_attr_parse.h | 46 const u8 *encr_type; /* 2 octets */ member
|
H A D | wps_i.h | 89 u16 encr_type; member
|
H A D | wps_common.c | 372 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()
|
H A D | wps_attr_parse.c | 409 attr->encr_type = pos; in wps_set_attr()
|
H A D | wps.h | 51 u16 encr_type; member
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_wsc.c | 104 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()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wps_hostapd.c | 392 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() 1948 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wps_supplicant.c | 410 wpa_printf(MSG_DEBUG, "WPS: Encryption Type 0x%x", cred->encr_type); in wpa_supplicant_wps_cred() 496 switch (cred->encr_type) { in wpa_supplicant_wps_cred() 842 cred->auth_type, cred->encr_type, key_str); in wpa_supplicant_wps_event_er_ap_settings() 2096 cred->encr_type = WPS_ENCR_AES; in wpas_wps_network_to_cred() 2098 cred->encr_type = WPS_ENCR_TKIP; in wpas_wps_network_to_cred() 2111 cred->encr_type = WPS_ENCR_NONE; in wpas_wps_network_to_cred() 2186 cred.encr_type = WPS_ENCR_NONE; in wpas_wps_er_config() 2189 cred.encr_type = WPS_ENCR_WEP; in wpas_wps_er_config() 2192 cred.encr_type = WPS_ENCR_TKIP; in wpas_wps_er_config() 2194 cred.encr_type = WPS_ENCR_AES; in wpas_wps_er_config()
|
H A D | README-WPS | 308 …uid=fd91b4ec-e3fa-5891-a57d-8c59efeed1d2 ssid=test-wps auth_type=0x0020 encr_type=0x0008 key=12345…
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new.c | 732 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()
|