Lines Matching refs:uuid
14 #include "utils/uuid.h"
31 u8 uuid[WPS_UUID_LEN];
88 u8 uuid[WPS_UUID_LEN];
235 struct wps_device_data *dev, const u8 *uuid)
249 os_memcpy(d->uuid, uuid, WPS_UUID_LEN);
331 wpa_hexdump(MSG_DEBUG, "WPS: Removed UUID-E",
355 wpa_printf(MSG_DEBUG, "WPS: Add one for the requested UUID");
356 wpa_hexdump(MSG_DEBUG, "WPS: Requested UUID",
364 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E",
479 return wps_build_uuid_e(msg, reg->wps->uuid);
648 * @uuid: UUID-E or %NULL for wildcard (any UUID)
655 const u8 *uuid, const u8 *pin, size_t pin_len,
665 if (uuid == NULL)
668 os_memcpy(p->uuid, uuid, WPS_UUID_LEN);
687 wpa_hexdump(MSG_DEBUG, "WPS: UUID", uuid, WPS_UUID_LEN);
732 wpa_hexdump(MSG_DEBUG, "WPS: Expired PIN for UUID",
733 pin->uuid, WPS_UUID_LEN);
752 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
753 pin->uuid, WPS_UUID_LEN);
764 * wps_registrar_invalidate_pin - Invalidate a PIN for a specific UUID-E
766 * @uuid: UUID-E
769 int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid)
775 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
776 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
777 pin->uuid, WPS_UUID_LEN);
788 const u8 *uuid, size_t *pin_len)
796 os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
803 /* Check for wildcard UUIDs since none of the UUID-specific
809 "PIN. Assigned it for this UUID-E");
811 os_memcpy(pin->uuid, uuid, WPS_UUID_LEN);
837 * wps_registrar_unlock_pin - Unlock a PIN for a specific UUID-E
839 * @uuid: UUID-E
844 * a wildcard UUID, it will be removed instead of allowing multiple uses.
846 int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid)
851 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
855 return wps_registrar_invalidate_pin(reg, uuid);
1038 "UUID-E included");
1041 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E from Probe Request", attr.uuid_e,
1183 wps_build_uuid_e(probe, reg->wps->uuid) ||
1265 wpa_printf(MSG_DEBUG, "WPS: * UUID-R");
1659 wpa_hexdump(MSG_DEBUG, "WPS: UUID-R", wps->uuid_r, WPS_UUID_LEN);
1975 wpa_printf(MSG_DEBUG, "WPS: No UUID-E received");
1980 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E", wps->uuid_e, WPS_UUID_LEN);
3280 char uuid[40];
3286 if (uuid_bin2str(d->uuid, uuid, sizeof(uuid)))
3297 uuid,