Lines Matching defs:cred
637 cred,
645 os_memset(&wps->cred, 0, sizeof(wps->cred));
646 wpabuf_set(&msg, cred, cred_len);
648 wps_process_cred(&attr, &wps->cred))
651 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) !=
655 ")", MAC2STR(wps->cred.mac_addr),
674 if (!(wps->cred.encr_type &
676 if (wps->cred.encr_type & WPS_ENCR_WEP) {
684 "invalid encr_type 0x%x", wps->cred.encr_type);
690 wps->cred.cred_attr = cred - 4;
691 wps->cred.cred_attr_len = cred_len + 4;
692 ret = wps->wps->cred_cb(wps->wps->cb_ctx, &wps->cred);
693 wps->cred.cred_attr = NULL;
694 wps->cred.cred_attr_len = 0;
701 static int wps_process_creds(struct wps_data *wps, const u8 *cred[],
718 res = wps_process_cred_e(wps, cred[i], cred_len[i], wps2);
741 struct wps_credential cred;
746 if (wps_process_ap_settings(attr, &cred) < 0)
752 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) !=
756 ")", MAC2STR(cred.mac_addr),
775 if (!(cred.encr_type & (WPS_ENCR_NONE | WPS_ENCR_TKIP | WPS_ENCR_AES)))
777 if (cred.encr_type & WPS_ENCR_WEP) {
785 "invalid encr_type 0x%x", cred.encr_type);
792 if ((cred.encr_type & (WPS_ENCR_TKIP | WPS_ENCR_AES)) ==
794 (cred.auth_type & (WPS_AUTH_WPAPSK | WPS_AUTH_WPA2PSK)) ==
806 if ((cred.encr_type & (WPS_ENCR_TKIP | WPS_ENCR_AES)) == WPS_ENCR_TKIP)
810 cred.encr_type |= WPS_ENCR_AES;
813 if ((cred.auth_type & (WPS_AUTH_WPAPSK | WPS_AUTH_WPA2PSK)) ==
817 cred.auth_type |= WPS_AUTH_WPA2PSK;
822 cred.cred_attr = wpabuf_head(attrs);
823 cred.cred_attr_len = wpabuf_len(attrs);
824 wps->wps->cred_cb(wps->wps->cb_ctx, &cred);
1153 wps_process_creds(wps, eattr.cred, eattr.cred_len,