Lines Matching refs:uuid
14 #include "utils/uuid.h"
78 u8 uuid[WPS_UUID_LEN];
135 u8 uuid[WPS_UUID_LEN];
289 struct wps_device_data *dev, const u8 *uuid)
303 os_memcpy(d->uuid, uuid, WPS_UUID_LEN);
385 wpa_hexdump(MSG_DEBUG, "WPS: Removed UUID-E",
409 wpa_printf(MSG_DEBUG, "WPS: Add one for the requested UUID");
410 wpa_hexdump(MSG_DEBUG, "WPS: Requested UUID",
418 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E",
533 return wps_build_uuid_e(msg, reg->wps->uuid);
723 * @uuid: UUID-E or %NULL for wildcard (any UUID)
730 const u8 *uuid, const u8 *pin, size_t pin_len,
740 if (uuid == NULL)
743 os_memcpy(p->uuid, uuid, WPS_UUID_LEN);
765 wpa_hexdump(MSG_DEBUG, "WPS: UUID", uuid, WPS_UUID_LEN);
810 wpa_hexdump(MSG_DEBUG, "WPS: Expired PIN for UUID",
811 pin->uuid, WPS_UUID_LEN);
838 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
839 pin->uuid, WPS_UUID_LEN);
850 * wps_registrar_invalidate_pin - Invalidate a PIN for a specific UUID-E
852 * @uuid: UUID-E
855 int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid)
861 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
862 wpa_hexdump(MSG_DEBUG, "WPS: Invalidated PIN for UUID",
863 pin->uuid, WPS_UUID_LEN);
874 const u8 *uuid, size_t *pin_len)
882 os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
889 /* Check for wildcard UUIDs since none of the UUID-specific
895 "PIN. Assigned it for this UUID-E");
897 os_memcpy(pin->uuid, uuid, WPS_UUID_LEN);
923 * wps_registrar_unlock_pin - Unlock a PIN for a specific UUID-E
925 * @uuid: UUID-E
930 * a wildcard UUID, it will be removed instead of allowing multiple uses.
932 int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid)
937 if (os_memcmp(pin->uuid, uuid, WPS_UUID_LEN) == 0) {
941 return wps_registrar_invalidate_pin(reg, uuid);
1135 "UUID-E included");
1138 wpa_hexdump(MSG_DEBUG, "WPS: UUID-E from Probe Request", attr.uuid_e,
1298 wps_build_uuid_e(probe, reg->wps->uuid) ||
1395 wpa_printf(MSG_DEBUG, "WPS: * UUID-R");
1789 wpa_hexdump(MSG_DEBUG, "WPS: UUID-R", wps->uuid_r, WPS_UUID_LEN);
2105 wpa_printf(MSG_DEBUG, "WPS: No UUID-E received");
2110 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,