Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 46) sorted by relevance

12

/hostap-latest/src/utils/
Duuid.c65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument
69 if (uuid[i]) in is_nil_uuid()
75 int uuid_random(u8 *uuid) in uuid_random() argument
83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random()
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random()
87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random()
90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random()
93 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_random()
Duuid.h16 int is_nil_uuid(const u8 *uuid);
17 int uuid_random(u8 *uuid);
DMakefile15 uuid.o \
/hostap-latest/src/wps/
Dwps_er.c44 ev->uuid = sta->uuid; in wps_er_sta_event()
60 const u8 *uuid) in wps_er_sta_get() argument
66 (uuid == NULL || in wps_er_sta_get()
67 os_memcmp(uuid, sta->uuid, WPS_UUID_LEN) == 0)) in wps_er_sta_get()
100 struct in_addr *addr, const u8 *uuid, in wps_er_ap_get() argument
106 (uuid == NULL || in wps_er_ap_get()
107 os_memcmp(uuid, ap->uuid, WPS_UUID_LEN) == 0) && in wps_er_ap_get()
137 evap->uuid = ap->uuid; in wps_er_ap_event()
279 const u8 *uuid) in wps_er_ap_get_settings() argument
283 if (os_memcmp(uuid, s->uuid, WPS_UUID_LEN) == 0) in wps_er_ap_get_settings()
[all …]
Dwps.h252 const u8 *uuid,
574 const u8 *uuid; member
590 const u8 *uuid; member
604 const u8 *uuid; member
609 const u8 *uuid; member
665 u8 uuid[16]; member
860 const u8 *uuid, const u8 *pin, size_t pin_len,
862 int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid);
864 int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid);
912 int wps_er_pbc(struct wps_er *er, const u8 *uuid, const u8 *addr);
[all …]
Dwps_er_ssdp.c30 u8 uuid[WPS_UUID_LEN]; in wps_er_ssdp_rx() local
57 os_memset(uuid, 0, sizeof(uuid)); in wps_er_ssdp_rx()
94 if (uuid_str2bin(pos2, uuid) < 0) { in wps_er_ssdp_rx()
123 wps_er_ap_add(er, uuid, &addr.sin_addr, location, max_age); in wps_er_ssdp_rx()
Dwps_er.h19 u8 uuid[WPS_UUID_LEN]; member
42 u8 uuid[WPS_UUID_LEN]; member
72 u8 uuid[WPS_UUID_LEN]; member
102 void wps_er_ap_add(struct wps_er *er, const u8 *uuid, struct in_addr *addr,
Dwps_upnp.c254 static int uuid_make(u8 uuid[UUID_LEN]) in uuid_make()
256 if (os_get_random(uuid, UUID_LEN) < 0) in uuid_make()
260 uuid[6] &= 0x0f; uuid[6] |= (4 << 4); /* version 4 == random gen */ in uuid_make()
261 uuid[8] &= 0x3f; uuid[8] |= 0x80; in uuid_make()
593 const u8 uuid[UUID_LEN]) in subscription_find()
597 if (os_memcmp(s->uuid, uuid, UUID_LEN) == 0) in subscription_find()
745 if (uuid_make(s->uuid) < 0) { in subscription_start()
769 uuid_bin2str(s->uuid, str, sizeof(str)); in subscription_start()
781 const u8 uuid[UUID_LEN]) in subscription_renew()
785 struct subscription *s = subscription_find(sm, uuid); in subscription_renew()
Dwps_upnp_i.h89 u8 uuid[UUID_LEN]; member
156 const u8 uuid[UUID_LEN]);
159 const u8 uuid[UUID_LEN]);
Dwps_common.c500 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument
518 os_memcpy(uuid, hash, 16); in uuid_gen_mac_addr()
521 uuid[6] = (5 << 4) | (uuid[6] & 0x0f); in uuid_gen_mac_addr()
524 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_gen_mac_addr()
728 wps_build_uuid_e(msg, ctx->uuid) || in wps_build_nfc_handover_req()
850 wps_build_uuid_e(msg, ctx->uuid) || in wps_build_nfc_handover_req_p2p()
902 wps_build_uuid_e(msg, ctx->uuid) || in wps_build_nfc_handover_sel_p2p()
Dwps_upnp_web.c226 uuid_bin2str(iface->wps->uuid, uuid_string, sizeof(uuid_string)); in format_wps_device_xml()
996 u8 uuid[UUID_LEN]; in web_connection_parse_subscribe() local
1096 if (uuid_str2bin(h, uuid)) { in web_connection_parse_subscribe()
1115 s = subscription_renew(sm, uuid); in web_connection_parse_subscribe()
1118 uuid_bin2str(uuid, str, sizeof(str)); in web_connection_parse_subscribe()
1148 uuid_bin2str(s->uuid, b, 80); in web_connection_parse_subscribe()
1215 u8 uuid[UUID_LEN]; in web_connection_parse_unsubscribe() local
1265 if (uuid_str2bin(h, uuid)) { in web_connection_parse_unsubscribe()
1291 uuid_bin2str(uuid, str, sizeof(str)); in web_connection_parse_unsubscribe()
1293 s = subscription_find(sm, uuid); in web_connection_parse_unsubscribe()
Dwps_registrar.c81 u8 uuid[WPS_UUID_LEN]; member
138 u8 uuid[WPS_UUID_LEN]; member
326 struct wps_device_data *dev, const u8 *uuid) in wps_device_store() argument
340 os_memcpy(d->uuid, uuid, WPS_UUID_LEN); in wps_device_store()
565 return wps_build_uuid_e(msg, reg->wps->uuid); in wps_build_sel_pbc_reg_uuid_e()
786 const u8 *uuid, const u8 *pin, size_t pin_len, in wps_registrar_add_pin() argument
796 if (uuid == NULL) in wps_registrar_add_pin()
799 os_memcpy(p->uuid, uuid, WPS_UUID_LEN); in wps_registrar_add_pin()
820 wpa_hexdump(MSG_DEBUG, "WPS: UUID", uuid, WPS_UUID_LEN); in wps_registrar_add_pin()
866 pin->uuid, WPS_UUID_LEN); in wps_registrar_expire_pins()
[all …]
Dwps.c47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
496 const u8 *uuid, in wps_build_probe_req_ie() argument
512 wps_build_uuid_e(ie, uuid) || in wps_build_probe_req_ie()
Dwps_i.h160 int wps_build_uuid_e(struct wpabuf *msg, const u8 *uuid);
211 struct wps_device_data *dev, const u8 *uuid);
Dwps_attr_build.c127 int wps_build_uuid_e(struct wpabuf *msg, const u8 *uuid) in wps_build_uuid_e() argument
134 wpabuf_put_data(msg, uuid, WPS_UUID_LEN); in wps_build_uuid_e()
/hostap-latest/wpa_supplicant/
Dwps_supplicant.h53 const char *uuid, const char *pin);
54 int wpas_wps_er_pbc(struct wpa_supplicant *wpa_s, const char *uuid);
55 int wpas_wps_er_learn(struct wpa_supplicant *wpa_s, const char *uuid,
57 int wpas_wps_er_set_config(struct wpa_supplicant *wpa_s, const char *uuid,
59 int wpas_wps_er_config(struct wpa_supplicant *wpa_s, const char *uuid,
62 int ndef, const char *uuid);
79 int ndef, int cr, const char *uuid);
Dwps_supplicant.c756 uuid_bin2str(ap->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_ap_add()
779 uuid_bin2str(ap->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_ap_remove()
790 uuid_bin2str(enrollee->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_enrollee_add()
814 uuid_bin2str(enrollee->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_enrollee_remove()
836 uuid_bin2str(ap_settings->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_ap_settings()
852 uuid_bin2str(ev->uuid, uuid_str, sizeof(uuid_str)); in wpa_supplicant_wps_event_er_set_sel_reg()
1478 char uuid[40], txt[400]; in wpas_wps_pin_needed_cb() local
1481 if (uuid_bin2str(uuid_e, uuid, sizeof(uuid))) in wpas_wps_pin_needed_cb()
1483 wpa_printf(MSG_DEBUG, "WPS: PIN needed for UUID-E %s", uuid); in wpas_wps_pin_needed_cb()
1486 uuid, MAC2STR(dev->mac_addr), dev->device_name, in wpas_wps_pin_needed_cb()
[all …]
Dwin_example.reg14 "uuid"="12345678-9abc-def0-1234-56789abcdef0"
/hostap-latest/wpa_supplicant/examples/
Dwps-nfc.py87 def wpas_get_er_config_token(uuid): argument
91 ret = wpas.request("WPS_ER_NFC_CONFIG_TOKEN NDEF " + uuid)
116 def wpas_get_handover_sel(uuid): argument
120 if uuid is None:
123 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR " + uuid).rstrip()
176 data = wpas_get_handover_sel(self.uuid)
345 def wps_write_er_config_tag(clf, uuid, wait_remove=True): argument
349 write_data = wpas_get_er_config_token(uuid)
413 srv.uuid = None
416 srv.uuid = arg_uuid
[all …]
/hostap-latest/src/ap/
Dwps_hostapd.c177 char uuid[40], txt[400]; in hostapd_wps_pin_needed_cb() local
180 if (uuid_bin2str(uuid_e, uuid, sizeof(uuid))) in hostapd_wps_pin_needed_cb()
182 wpa_printf(MSG_DEBUG, "WPS: PIN needed for E-UUID %s", uuid); in hostapd_wps_pin_needed_cb()
185 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb()
202 t.sec, uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb()
234 char uuid[40]; in hostapd_wps_reg_success_cb() local
236 if (uuid_bin2str(uuid_e, uuid, sizeof(uuid))) in hostapd_wps_reg_success_cb()
239 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb()
259 char uuid[40]; in hostapd_wps_enrollee_seen_cb() local
261 if (uuid_bin2str(uuid_e, uuid, sizeof(uuid))) in hostapd_wps_enrollee_seen_cb()
[all …]
Dwps_hostapd.h21 const char *uuid, const char *pin, int timeout);
/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp309 QString uuid; in enter_pin() local
313 uuid = ctx_item->data(peer_role_uuid).toString(); in enter_pin()
326 uuid.toLocal8Bit().constData(), in enter_pin()
810 QStandardItem * Peers::find_uuid(QString uuid) in find_uuid() argument
816 uuid); in find_uuid()
834 QString uuid = items[1]; in event_notify() local
1115 QString uuid = items[1]; in event_notify() local
1127 QStandardItem *item = find_uuid(uuid); in event_notify()
1133 item->setData(uuid, peer_role_uuid); in event_notify()
1180 QString uuid = items[1]; in event_notify() local
[all …]
Dpeers.h72 QStandardItem * find_uuid(QString uuid);
74 void remove_enrollee_uuid(QString uuid);
/hostap-latest/tests/hwsim/
Dtest_ap_wps.py1353 uuid = ev.split(' ')[1]
1354 dev[0].request("WPS_ER_PBC " + uuid)
1372 uuid = ev.split(' ')[1]
1373 dev[0].request("WPS_ER_PIN " + uuid + " " + pin)
2508 uuid = dev[0].get_status_field("uuid")
2516 if uuid not in ev:
2529 if uuid in l:
2984 def ssdp_get_location(uuid): argument
2985 res = ssdp_send_msearch("uuid:" + uuid)
4427 uuid = '27ea801a-9e5c-4e73-bd82-f89cbcd10d7e'
[all …]
/hostap-latest/hostapd/
Dmain.c700 u8 uuid[UUID_LEN]; in gen_uuid() local
706 uuid_gen_mac_addr(addr, uuid); in gen_uuid()
707 if (uuid_bin2str(uuid, buf, sizeof(buf)) < 0) in gen_uuid()

12