Home | History | Annotate | Download | only in wps

Lines Matching full:uuid

14 #include "utils/uuid.h"
78 u8 uuid[WPS_UUID_LEN];
135 u8 uuid[WPS_UUID_LEN];
290 struct wps_device_data *dev, const u8 *uuid)
304 os_memcpy(d->uuid, uuid, WPS_UUID_LEN);
386 wpa_hexdump(MSG_DEBUG, "WPS: Removed UUID-E",
410 wpa_printf(MSG_DEBUG, "WPS: Add one for the requested UUID");
411 wpa_hexdump(MSG_DEBUG, "WPS: Requested UUID",
419 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E",
534 return wps_build_uuid_e(msg, reg->wps->uuid);
725 * @uuid: UUID-E or %NULL for wildcard (any UUID)
732 const u8 *uuid, const u8 *pin, size_t pin_len,
742 if (uuid == NULL)
745 os_memcpy(p->uuid, uuid, WPS_UUID_LEN);
767 wpa_hexdump(MSG_DEBUG, "WPS: UUID", uuid, WPS_UUID_LEN);
812 wpa_hexdump(MSG_DEBUG, "WPS: Expired PIN for UUID",
813 pin->uuid, WPS_UUID_LEN);
840 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
841 pin->uuid, WPS_UUID_LEN);
852 * wps_registrar_invalidate_pin - Invalidate a PIN for a specific UUID-E
854 * @uuid: UUID-E
857 int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid)
863 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
864 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
865 pin->uuid, WPS_UUID_LEN);
876 const u8 *uuid, size_t *pin_len)
884 os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
891 /* Check for wildcard UUIDs since none of the UUID-specific
897 "PIN. Assigned it for this UUID-E");
899 os_memcpy(pin->uuid, uuid, WPS_UUID_LEN);
925 * wps_registrar_unlock_pin - Unlock a PIN for a specific UUID-E
927 * @uuid: UUID-E
932 * a wildcard UUID, it will be removed instead of allowing multiple uses.
934 int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid)
939 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
943 return wps_registrar_invalidate_pin(reg, uuid);
1139 "UUID-E included");
1142 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E from Probe Request", attr.uuid_e,
1303 wps_build_uuid_e(probe, reg->wps->uuid) ||
1400 wpa_printf(MSG_DEBUG, "WPS: * UUID-R");
1784 wpa_hexdump(MSG_DEBUG, "WPS: UUID-R", wps->uuid_r, WPS_UUID_LEN);
2102 wpa_printf(MSG_DEBUG, "WPS: No UUID-E received");
2107 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E", wps->uuid_e, WPS_UUID_LEN);
3414 char uuid[40];
3420 if (uuid_bin2str(d->uuid, uuid, sizeof(uuid)))
3431 uuid,