/freebsd-11-stable/contrib/wpa/src/wps/ |
H A D | wps_enrollee.c | 19 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg) argument 22 if (wps->wps->ap) 23 state = wps->wps->wps_state; 35 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg) argument 41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) 43 wpa_hexdump(MSG_DEBUG, "WPS: E-S1", wps->snonce, WPS_SECRET_NONCE_LEN); 45 wps->snonce + WPS_SECRET_NONCE_LEN, WPS_SECRET_NONCE_LEN); 47 if (wps 83 wps_build_e_snonce1(struct wps_data *wps, struct wpabuf *msg) argument 93 wps_build_e_snonce2(struct wps_data *wps, struct wpabuf *msg) argument 104 wps_build_m1(struct wps_data *wps) argument 170 wps_build_m3(struct wps_data *wps) argument 208 wps_build_m5(struct wps_data *wps) argument 243 wps_build_cred_ssid(struct wps_data *wps, struct wpabuf *msg) argument 253 wps_build_cred_auth_type(struct wps_data *wps, struct wpabuf *msg) argument 277 wps_build_cred_encr_type(struct wps_data *wps, struct wpabuf *msg) argument 301 wps_build_cred_network_key(struct wps_data *wps, struct wpabuf *msg) argument 339 wps_build_cred_mac_addr(struct wps_data *wps, struct wpabuf *msg) argument 349 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument 377 wps_build_m7(struct wps_data *wps) argument 423 wps_build_wsc_done(struct wps_data *wps) argument 452 wps_enrollee_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument 513 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument 528 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument 544 wps_process_uuid_r(struct wps_data *wps, const u8 *uuid_r) argument 558 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument 596 wps_process_r_hash1(struct wps_data *wps, const u8 *r_hash1) argument 610 wps_process_r_hash2(struct wps_data *wps, const u8 *r_hash2) argument 624 wps_process_r_snonce1(struct wps_data *wps, const u8 *r_snonce1) argument 664 wps_process_r_snonce2(struct wps_data *wps, const u8 *r_snonce2) argument 704 wps_process_cred_e(struct wps_data *wps, const u8 *cred, size_t cred_len, int wps2) argument 766 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) argument 802 wps_process_ap_settings_e(struct wps_data *wps, struct wps_parse_attr *attr, struct wpabuf *attrs, int wps2) argument 893 wps_process_dev_pw_id(struct wps_data *wps, const u8 *dev_pw_id) argument 950 wps_process_m2(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 1031 wps_process_m2d(struct wps_data *wps, struct wps_parse_attr *attr) argument 1086 wps_process_m4(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 1141 wps_process_m6(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 1198 wps_process_m8(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 1268 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument 1353 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument 1399 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument 1477 wps_enrollee_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument [all...] |
H A D | wps_registrar.c | 142 struct wps_context *wps; member in struct:wps_registrar 477 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg) argument 480 wps->wps_state); 483 wpabuf_put_u8(msg, wps->wps_state); 489 static void wps_registrar_free_pending_m2(struct wps_context *wps) argument 492 p = wps->upnp_msgs; 496 wps->upnp_msgs = p->next; 513 static int wps_build_ap_setup_locked(struct wps_context *wps, argument 516 if (wps->ap_setup_locked && wps 668 wps_registrar_init(struct wps_context *wps, const struct wps_registrar_config *cfg) argument 1405 wps_get_dev_password(struct wps_data *wps) argument 1467 wps_build_uuid_r(struct wps_data *wps, struct wpabuf *msg) argument 1477 wps_build_r_hash(struct wps_data *wps, struct wpabuf *msg) argument 1525 wps_build_r_snonce1(struct wps_data *wps, struct wpabuf *msg) argument 1535 wps_build_r_snonce2(struct wps_data *wps, struct wpabuf *msg) argument 1641 wps_build_cred(struct wps_data *wps, struct wpabuf *msg) argument 1847 wps_build_ap_settings(struct wps_data *wps, struct wpabuf *msg) argument 1858 wps_build_ap_cred(struct wps_data *wps) argument 1887 wps_build_m2(struct wps_data *wps) argument 1960 wps_build_m2d(struct wps_data *wps) argument 1999 wps_build_m4(struct wps_data *wps) argument 2038 wps_build_m6(struct wps_data *wps) argument 2074 wps_build_m8(struct wps_data *wps) argument 2110 wps_registrar_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument 2208 wps_process_enrollee_nonce(struct wps_data *wps, const u8 *e_nonce) argument 2223 wps_process_registrar_nonce(struct wps_data *wps, const u8 *r_nonce) argument 2239 wps_process_uuid_e(struct wps_data *wps, const u8 *uuid_e) argument 2253 wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) argument 2267 wps_process_e_hash1(struct wps_data *wps, const u8 *e_hash1) argument 2281 wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2) argument 2295 wps_process_e_snonce1(struct wps_data *wps, const u8 *e_snonce1) argument 2335 wps_process_e_snonce2(struct wps_data *wps, const u8 *e_snonce2) argument 2385 wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) argument 2401 wps_process_pubkey(struct wps_data *wps, const u8 *pk, size_t pk_len) argument 2418 wps_process_auth_type_flags(struct wps_data *wps, const u8 *auth) argument 2475 wps_process_encr_type_flags(struct wps_data *wps, const u8 *encr) argument 2515 wps_process_conn_type_flags(struct wps_data *wps, const u8 *conn) argument 2530 wps_process_config_methods(struct wps_data *wps, const u8 *methods) argument 2568 wps_process_wps_state(struct wps_data *wps, const u8 *state) argument 2583 wps_process_assoc_state(struct wps_data *wps, const u8 *assoc) argument 2599 wps_process_config_error(struct wps_data *wps, const u8 *err) argument 2615 wps_registrar_p2p_dev_addr_match(struct wps_data *wps) argument 2636 wps_registrar_skip_overlap(struct wps_data *wps) argument 2654 wps_process_m1(struct wps_data *wps, struct wps_parse_attr *attr) argument 2788 wps_process_m3(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 2823 wps_process_m5(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 2885 wps_sta_cred_cb(struct wps_data *wps) argument 2920 wps_process_ap_settings_r(struct wps_data *wps, struct wps_parse_attr *attr) argument 2974 wps_process_m7(struct wps_data *wps, const struct wpabuf *msg, struct wps_parse_attr *attr) argument 3039 wps_process_wsc_msg(struct wps_data *wps, const struct wpabuf *msg) argument 3122 wps_process_wsc_ack(struct wps_data *wps, const struct wpabuf *msg) argument 3189 wps_process_wsc_nack(struct wps_data *wps, const struct wpabuf *msg) argument 3271 wps_process_wsc_done(struct wps_data *wps, const struct wpabuf *msg) argument 3396 wps_registrar_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument [all...] |
H A D | wps_attr_build.c | 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) argument 26 wpabuf_clear_free(wps->dh_privkey); 27 wps->dh_privkey = NULL; 28 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey && 29 wps->wps->dh_ctx) { 31 if (wps->wps 159 wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) argument 284 wps_build_enrollee_nonce(struct wps_data *wps, struct wpabuf *msg) argument 294 wps_build_registrar_nonce(struct wps_data *wps, struct wpabuf *msg) argument 304 wps_build_auth_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 328 wps_build_encr_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 349 wps_build_conn_type_flags(struct wps_data *wps, struct wpabuf *msg) argument 359 wps_build_assoc_state(struct wps_data *wps, struct wpabuf *msg) argument 369 wps_build_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg) argument 384 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument [all...] |
H A D | wps_i.h | 12 #include "wps.h" 25 * wps - Pointer to long term WPS context 27 struct wps_context *wps; member in struct:wps_data 136 int wps_derive_keys(struct wps_data *wps); 137 int wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, 139 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, 141 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, 143 void wps_success_event(struct wps_context *wps, const u8 *mac_addr); 144 void wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, 146 void wps_pbc_overlap_event(struct wps_context *wps); [all...] |
H A D | wps_common.c | 62 int wps_derive_keys(struct wps_data *wps) argument 70 if (wps->dh_privkey == NULL) { 75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; 81 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey); 83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); 84 dh5_free(wps->dh_ctx); 85 wps 132 wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len) argument 155 wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, size_t encr_len) argument 272 wps_fail_event(struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr) argument 289 wps_success_event(struct wps_context *wps, const u8 *mac_addr) argument 302 wps_pwd_auth_fail_event(struct wps_context *wps, int enrollee, int part, const u8 *mac_addr) argument 318 wps_pbc_overlap_event(struct wps_context *wps) argument 327 wps_pbc_timeout_event(struct wps_context *wps) argument 336 wps_pbc_active_event(struct wps_context *wps) argument 345 wps_pbc_disable_event(struct wps_context *wps) argument 356 wps_get_oob_cred(struct wps_context *wps, int rf_band, int channel) argument 435 wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr) argument 575 wps_build_wsc_ack(struct wps_data *wps) argument 598 wps_build_wsc_nack(struct wps_data *wps) argument 740 wps_build_ssid(struct wpabuf *msg, struct wps_context *wps) argument [all...] |
H A D | wps_upnp.h | 22 struct wps_data *wps; member in struct:upnp_wps_peer 40 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
|
H A D | wps_er.c | 34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, argument 40 if (wps->event_cb == NULL) 55 wps->event_cb(wps->cb_ctx, event, &data); 76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE); 77 if (sta->wps) 78 wps_deinit(sta->wps); 127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap, argument 133 if (wps->event_cb == NULL) 150 wps 1249 wps_er_init(struct wps_context *wps, const char *ifname, const char *filter) argument 2037 wps_er_config_token_from_cred(struct wps_context *wps, struct wps_credential *cred) argument 2081 wps_er_nfc_handover_sel(struct wps_er *er, struct wps_context *wps, const u8 *uuid, const u8 *addr, struct wpabuf *pubkey) argument [all...] |
H A D | wps_upnp_web.c | 195 s = iface->wps->friendly_name; 199 s = iface->wps->dev.manufacturer; 203 if (iface->wps->manufacturer_url) 205 iface->wps->manufacturer_url); 207 if (iface->wps->model_description) 209 iface->wps->model_description); 211 s = iface->wps->dev.model_name; 215 if (iface->wps->dev.model_number) 217 iface->wps->dev.model_number); 219 if (iface->wps [all...] |
H A D | wps_er.h | 28 struct wps_data *wps; member in struct:wps_er_sta 40 struct wps_data *wps; member in struct:wps_er_ap 77 struct wps_context *wps; member in struct:wps_er
|
H A D | wps.c | 44 data->wps = cfg->wps; 47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); 49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); 50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); 69 if (cfg->wps->ap && !cfg->registrar && cfg->wps->ap_nfc_dev_pw_id) { 75 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id; 77 os_memdup(wpabuf_head(cfg->wps->ap_nfc_dev_pw), 78 wpabuf_len(cfg->wps 201 wps_process_msg(struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg) argument 221 wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code) argument [all...] |
H A D | wps_attr_process.c | 16 int wps_process_authenticator(struct wps_data *wps, const u8 *authenticator, argument 29 if (wps->last_msg == NULL) { 38 addr[0] = wpabuf_head(wps->last_msg); 39 len[0] = wpabuf_len(wps->last_msg); 42 hmac_sha256_vector(wps->authkey, WPS_AUTHKEY_LEN, 2, addr, len, hash); 53 int wps_process_key_wrap_auth(struct wps_data *wps, struct wpabuf *msg, argument 73 hmac_sha256(wps->authkey, WPS_AUTHKEY_LEN, head, len, hash);
|
H A D | wps.h | 111 * wps - Pointer to long term WPS context 113 struct wps_context *wps; member in struct:wps_config 228 enum wps_process_res wps_process_msg(struct wps_data *wps, 232 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code); 843 wps_registrar_init(struct wps_context *wps, 882 struct wpabuf * wps_get_oob_cred(struct wps_context *wps, int rf_band, 884 int wps_oob_use_cred(struct wps_context *wps, struct wps_parse_attr *attr); 888 struct wps_er * wps_er_init(struct wps_context *wps, const char *ifname, 903 struct wpabuf * wps_er_config_token_from_cred(struct wps_context *wps, 908 struct wps_context *wps, cons [all...] |
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | wps_hostapd.c | 19 #include "wps/wps.h" 20 #include "wps/wps_defs.h" 21 #include "wps/wps_dev_attr.h" 22 #include "wps/wps_attr_parse.h" 32 #include "wps/wps_upnp.h" 34 struct wps_context *wps); 43 static void hostapd_wps_nfc_clear(struct wps_context *wps); 220 if (hapd != data->current_hapd && hapd->wps != NULL) 221 wps_registrar_complete(hapd->wps 971 hostapd_wps_set_vendor_ext(struct hostapd_data *hapd, struct wps_context *wps) argument 996 hostapd_free_wps(struct wps_context *wps) argument 1014 struct wps_context *wps; local 1254 struct wps_context *wps = hapd->wps; local 1273 hostapd_wps_nfc_clear(struct wps_context *wps) argument 1576 hostapd_wps_upnp_init(struct hostapd_data *hapd, struct wps_context *wps) argument 1821 hostapd_wps_nfc_tag_process(struct hostapd_data *hapd, const struct wpabuf *wps) argument 1844 const struct wpabuf *wps = data; local 1898 struct wps_context *wps = hapd->wps; local 1935 struct wpabuf *wps; local 2043 struct wps_context *wps = hapd->wps; local [all...] |
H A D | taxonomy.c | 100 char wps[WPS_NAME_LEN + 5 + 1]; /* room to prepend ",wps:" + trailing local 115 os_memset(wps, 0, sizeof(wps)); 145 os_snprintf(wps, sizeof(wps), 146 ",wps:%s", model_name); 231 txpow, extcap, wps);
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | wps_supplicant.c | 24 #include "wps/wps_attr_parse.h" 141 struct wpabuf *wps; local 144 wps = wpa_bss_get_vendor_ie_multi(bss, 146 if (wps && wps_parse_msg(wps, &attr) == 0 && 150 wpabuf_free(wps); 1324 /* Cancel the wps pbc/pin requests */ 1493 struct wps_context *wps) 1504 if (wps != wpa_s->global->ifaces->wps) 1492 wpas_wps_set_uuid(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument 1526 wpas_wps_set_vendor_ext_m1(struct wpa_supplicant *wpa_s, struct wps_context *wps) argument 1545 struct wps_context *wps; local 1630 wpas_wps_nfc_clear(struct wps_context *wps) argument 1865 unsigned int pbc = 0, auth = 0, pin = 0, wps = 0; local 2187 struct wps_context *wps = wpa_s->wps; local 2316 struct wps_context *wps = wpa_s->wps; local 2435 wpas_wps_nfc_tag_process(struct wpa_supplicant *wpa_s, const struct wpabuf *wps) argument 2463 const struct wpabuf *wps = data; local 2531 struct wps_context *wps = wpa_s->wps; local 2595 struct wpabuf *wps; local 2734 struct wpabuf *wps; local 2874 struct wpabuf *wps; local [all...] |
H A D | ap.c | 30 #include "wps/wps.h" 551 os_memcpy(bss->uuid, wpa_s->wps->uuid, WPS_UUID_LEN); 1021 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]->wps) 1024 reg = wpa_s->ap_iface->bss[0]->wps->registrar; 1036 * There are 2 cases to return wps cancel as success: 1037 * 1. When wps cancel was initiated but no connection has been 1457 struct wps_context *wps; local 1462 wps = hapd->wps; [all...] |
H A D | Android.mk | 73 INCLUDES += $(LOCAL_PATH)/src/wps 736 OBJS += src/wps/wps.c 737 OBJS += src/wps/wps_common.c 738 OBJS += src/wps/wps_attr_parse.c 739 OBJS += src/wps/wps_attr_build.c 740 OBJS += src/wps/wps_attr_process.c 741 OBJS += src/wps/wps_dev_attr.c 742 OBJS += src/wps/wps_enrollee.c 743 OBJS += src/wps/wps_registra [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/examples/ |
H A D | wps-ap-cli | 43 $CLI status wps 53 echo "0: Exit wps-ap-cli"
|
H A D | wpas-dbus-new-wps.py | 73 wps = dbus.Interface(if_obj, WPAS_DBUS_WPS_INTERFACE) 74 wps.Start({'Role': 'enrollee', 'Type': 'pbc'})
|
/freebsd-11-stable/usr.sbin/wpa/ |
H A D | Makefile.inc | 20 ${WPA_DISTDIR}/src/wps 30 CFLAGS+=-I${WPA_DISTDIR}/src/wps
|
/freebsd-11-stable/contrib/wpa/src/radius/ |
H A D | radius_server.h | 183 * wps - Wi-Fi Protected Setup context 189 struct wps_context *wps; member in struct:radius_server_conf
|
/freebsd-11-stable/contrib/wpa/hs20/client/ |
H A D | Makefile | 54 OBJS += ../../src/wps/httpread.o 55 OBJS += ../../src/wps/http_server.o 103 rm -f ../../src/wps/*.o 104 rm -f ../../src/wps/*.d
|
H A D | Android.mk | 44 OBJS += ../../src/wps/httpread.c 45 OBJS += ../../src/wps/http_server.c
|
/freebsd-11-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server_wsc.c | 16 #include "wps/wps.h" 27 struct wps_data *wps; member in struct:eap_wsc_data 106 cfg.wps = sm->wps; 109 if (sm->wps == NULL || sm->wps->registrar == NULL) { 142 data->wps = wps_init(&cfg); 143 if (data->wps == NULL) { 160 wps_deinit(data->wps); [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_wsc.c | 15 #include "wps/wps.h" 16 #include "wps/wps_defs.h" 27 struct wps_data *wps; member in struct:eap_wsc_data 147 struct wps_context *wps; local 153 wps = sm->wps; 154 if (wps == NULL) { 178 data->wps_ctx = wps; 181 cfg.wps [all...] |