Lines Matching refs:psk
212 struct hostapd_wpa_psk *psk;
219 wpa_printf(MSG_ERROR, "WPA PSK file '%s' not found.", fname);
246 psk = os_zalloc(sizeof(*psk));
247 if (psk == NULL) {
248 wpa_printf(MSG_ERROR, "WPA PSK allocation failed");
253 psk->group = 1;
255 os_memcpy(psk->addr, addr, ETH_ALEN);
259 wpa_printf(MSG_ERROR, "No PSK on line %d in '%s'",
261 os_free(psk);
269 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0)
273 4096, psk->psk, PMK_LEN);
277 wpa_printf(MSG_ERROR, "Invalid PSK '%s' on line %d in "
279 os_free(psk);
284 psk->next = ssid->wpa_psk;
285 ssid->wpa_psk = psk;
298 wpa_printf(MSG_ERROR, "Unable to alloc space for PSK");
303 wpa_hexdump_ascii_key(MSG_DEBUG, "PSK (ASCII passphrase)",
308 4096, ssid->wpa_psk->psk, PMK_LEN);
309 wpa_hexdump_key(MSG_DEBUG, "PSK (from passphrase)",
310 ssid->wpa_psk->psk, PMK_LEN);
321 wpa_printf(MSG_DEBUG, "Using pre-configured WPA PSK "
324 wpa_printf(MSG_DEBUG, "Deriving WPA PSK based on "
399 struct hostapd_wpa_psk *psk, *tmp;
401 for (psk = *l; psk;) {
402 tmp = psk;
403 psk = psk->next;
708 struct hostapd_wpa_psk *psk;
712 wpa_printf(MSG_DEBUG, "Searching a PSK for " MACSTR
717 wpa_printf(MSG_DEBUG, "Searching a PSK for " MACSTR
722 for (psk = conf->ssid.wpa_psk; psk != NULL; psk = psk->next) {
724 (psk->group ||
725 (addr && os_memcmp(psk->addr, addr, ETH_ALEN) == 0) ||
727 os_memcmp(psk->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) ==
729 return psk->psk;
731 if (psk->psk == prev_psk)
771 wpa_printf(MSG_ERROR, "WPA-PSK using RADIUS enabled, but no "
781 wpa_printf(MSG_ERROR, "WPA-PSK enabled, but PSK or passphrase "