/external/wpa_supplicant_8/src/eap_peer/ |
H A D | eap_pax.c | 96 struct wpabuf *resp; local 99 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PAX, 101 if (resp == NULL) 104 pax = wpabuf_put(resp, sizeof(*pax)); 111 return resp; 120 struct wpabuf *resp; local 191 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); 192 if (resp == NULL) 195 wpabuf_put_be16(resp, EAP_PAX_RAND_LEN); 196 wpabuf_put_data(resp, dat 236 struct wpabuf *resp; local 328 struct wpabuf *resp; local [all...] |
H A D | eap_psk.c | 89 struct wpabuf *resp; local 136 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PSK, 139 if (resp == NULL) 141 hdr2 = wpabuf_put(resp, sizeof(*hdr2)); 145 wpabuf_put_data(resp, data->id_p, data->id_p_len); 150 wpabuf_free(resp); 162 wpabuf_free(resp); 174 return resp; 184 struct wpabuf *resp; local 317 resp 377 struct wpabuf *resp = NULL; local [all...] |
H A D | eap_sake.c | 149 struct wpabuf *resp; local 169 resp = eap_sake_build_msg(data, eap_get_id(reqData), 172 if (resp == NULL) 176 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, 181 return resp; 193 struct wpabuf *resp; local 250 resp = eap_sake_build_msg(data, eap_get_id(reqData), rlen, 252 if (resp == NULL) 256 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, 261 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERI 294 struct wpabuf *resp; local 367 struct wpabuf *resp; local [all...] |
H A D | eap_tls.c | 152 struct wpabuf *resp, u8 id) 173 if (resp) { 178 return resp; 227 struct wpabuf *resp; local 244 resp = NULL; 246 id, pos, left, &resp); 249 return eap_tls_failure(sm, data, ret, res, resp, id); 256 wpabuf_free(resp); 260 return resp; 149 eap_tls_failure(struct eap_sm *sm, struct eap_tls_data *data, struct eap_method_ret *ret, int res, struct wpabuf *resp, u8 id) argument
|
H A D | eap_tnc.c | 86 struct wpabuf *resp; local 108 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, plen, 110 if (resp == NULL) 113 wpabuf_put_u8(resp, flags); /* Flags */ 115 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); 117 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, 139 return resp; 201 struct wpabuf *resp; local 354 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, 356 if (resp [all...] |
H A D | eap_wsc.c | 304 struct wpabuf *resp; local 325 resp = eap_msg_alloc(EAP_VENDOR_WFA, EAP_VENDOR_TYPE_WSC, plen, 327 if (resp == NULL) 330 wpabuf_put_u8(resp, data->out_op_code); /* Op-Code */ 331 wpabuf_put_u8(resp, flags); /* Flags */ 333 wpabuf_put_be16(resp, wpabuf_len(data->out_buf)); 335 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, 364 return resp;
|
/external/wpa_supplicant_8/src/eap_server/ |
H A D | eap_server_pax.c | 187 struct eap_pax_hdr *resp; local 193 if (pos == NULL || len < sizeof(*resp)) { 199 resp = (struct eap_pax_hdr *) pos; 204 resp->op_code, resp->flags, resp->mac_id, resp->dh_group_id, 205 resp->public_key_id); 207 (u8 *) (resp + 1), len - sizeof(*resp) 287 struct eap_pax_hdr *resp; local 455 struct eap_pax_hdr *resp; local [all...] |
H A D | eap_server_psk.c | 217 const struct eap_psk_hdr_2 *resp; local 230 if (cpos == NULL || left < sizeof(*resp)) { 234 resp = (const struct eap_psk_hdr_2 *) cpos; 235 cpos = (const u8 *) (resp + 1); 236 left -= sizeof(*resp); 293 resp->rand_p, EAP_PSK_RAND_LEN); 294 os_memcpy(data->rand_p, resp->rand_p, EAP_PSK_RAND_LEN); 316 wpa_hexdump(MSG_DEBUG, "EAP-PSK: MAC_P", resp->mac_p, EAP_PSK_MAC_LEN); 317 if (os_memcmp_const(mac, resp->mac_p, EAP_PSK_MAC_LEN) != 0) { 333 const struct eap_psk_hdr_4 *resp; local [all...] |
H A D | eap_server_sake.c | 239 struct eap_sake_hdr *resp; local 250 resp = (struct eap_sake_hdr *) pos; 251 version = resp->version; 252 session_id = resp->session_id; 253 subtype = resp->subtype; 413 struct eap_sake_hdr *resp; local 422 resp = (struct eap_sake_hdr *) pos; 424 subtype = resp->subtype; 425 pos = (u8 *) (resp + 1);
|
/external/wpa_supplicant_8/src/p2p/ |
H A D | p2p_go_neg.c | 541 struct wpabuf *resp; local 798 resp = p2p_build_go_neg_resp(p2p, dev, msg.dialog_token, status, 801 if (resp == NULL) 811 wpabuf_free(resp); 833 wpabuf_head(resp), wpabuf_len(resp), 500) < 0) { 837 wpabuf_free(resp);
|
H A D | p2p_invitation.c | 170 struct wpabuf *resp = NULL; local 348 resp = p2p_build_invitation_resp(p2p, dev, msg.dialog_token, status, 351 if (resp == NULL) 391 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) { 396 wpabuf_free(resp);
|
H A D | p2p_sd.c | 419 struct wpabuf *resp; local 444 resp = p2p_build_sd_response(dialog_token, WLAN_STATUS_SUCCESS, 448 resp = p2p_build_sd_response(dialog_token, 452 if (resp == NULL) 458 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) 461 wpabuf_free(resp); 607 struct wpabuf *resp; local 638 resp = p2p_build_gas_comeback_resp(dialog_token, WLAN_STATUS_SUCCESS, 644 if (resp [all...] |
/external/wpa_supplicant_8/src/wps/ |
H A D | http_server.c | 132 void http_request_send(struct http_request *req, struct wpabuf *resp) argument 137 (unsigned long) wpabuf_len(resp), 141 res = send(req->fd, wpabuf_head(resp), wpabuf_len(resp), 0); 145 } else if ((size_t) res < wpabuf_len(resp)) { 147 res, (unsigned long) wpabuf_len(resp)); 151 wpabuf_free(resp); 156 struct wpabuf *resp) 158 http_request_send(req, resp); 155 http_request_send_and_deinit(struct http_request *req, struct wpabuf *resp) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/common/ |
H A D | wpa_helpers.c | 62 char *resp, size_t resp_size) 72 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), resp, &len, NULL) < 0) { 78 resp[len] = '\0'; 61 wpa_command_resp(const char *ifname, const char *cmd, char *resp, size_t resp_size) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/ |
H A D | eap_ikev2.c | 139 struct wpabuf *resp; local 176 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_IKEV2, plen, 178 if (resp == NULL) 181 wpabuf_put_u8(resp, flags); /* Flags */ 183 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); 185 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, 190 const u8 *msg = wpabuf_head(resp); 191 size_t len = wpabuf_len(resp); 195 msg, len, wpabuf_put(resp, icv_len)); 242 return resp; [all...] |
H A D | eap_leap.c | 64 struct wpabuf *resp; local 109 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_LEAP, 112 if (resp == NULL) 114 wpabuf_put_u8(resp, LEAP_VERSION); 115 wpabuf_put_u8(resp, 0); /* unused */ 116 wpabuf_put_u8(resp, LEAP_RESPONSE_LEN); 117 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); 125 wpabuf_put_data(resp, identity, identity_len); 129 return resp; 138 struct wpabuf *resp; local [all...] |
H A D | eap_pax.c | 96 struct wpabuf *resp; local 99 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PAX, 101 if (resp == NULL) 104 pax = wpabuf_put(resp, sizeof(*pax)); 111 return resp; 120 struct wpabuf *resp; local 191 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); 192 if (resp == NULL) 195 wpabuf_put_be16(resp, EAP_PAX_RAND_LEN); 196 wpabuf_put_data(resp, dat 236 struct wpabuf *resp; local 328 struct wpabuf *resp; local [all...] |
H A D | eap_psk.c | 89 struct wpabuf *resp; local 136 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PSK, 139 if (resp == NULL) 141 hdr2 = wpabuf_put(resp, sizeof(*hdr2)); 145 wpabuf_put_data(resp, data->id_p, data->id_p_len); 150 wpabuf_free(resp); 162 wpabuf_free(resp); 174 return resp; 184 struct wpabuf *resp; local 317 resp 377 struct wpabuf *resp = NULL; local [all...] |
H A D | eap_sake.c | 149 struct wpabuf *resp; local 169 resp = eap_sake_build_msg(data, eap_get_id(reqData), 172 if (resp == NULL) 176 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, 181 return resp; 193 struct wpabuf *resp; local 250 resp = eap_sake_build_msg(data, eap_get_id(reqData), rlen, 252 if (resp == NULL) 256 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, 261 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERI 294 struct wpabuf *resp; local 367 struct wpabuf *resp; local [all...] |
H A D | eap_tls.c | 152 struct wpabuf *resp, u8 id) 173 if (resp) { 178 return resp; 227 struct wpabuf *resp; local 244 resp = NULL; 246 id, pos, left, &resp); 249 return eap_tls_failure(sm, data, ret, res, resp, id); 256 wpabuf_free(resp); 260 return resp; 149 eap_tls_failure(struct eap_sm *sm, struct eap_tls_data *data, struct eap_method_ret *ret, int res, struct wpabuf *resp, u8 id) argument
|
H A D | eap_tnc.c | 86 struct wpabuf *resp; local 108 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, plen, 110 if (resp == NULL) 113 wpabuf_put_u8(resp, flags); /* Flags */ 115 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); 117 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, 139 return resp; 201 struct wpabuf *resp; local 354 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, 356 if (resp [all...] |
H A D | eap_wsc.c | 304 struct wpabuf *resp; local 325 resp = eap_msg_alloc(EAP_VENDOR_WFA, EAP_VENDOR_TYPE_WSC, plen, 327 if (resp == NULL) 330 wpabuf_put_u8(resp, data->out_op_code); /* Op-Code */ 331 wpabuf_put_u8(resp, flags); /* Flags */ 333 wpabuf_put_be16(resp, wpabuf_len(data->out_buf)); 335 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, 364 return resp;
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_server/ |
H A D | eap_server_pax.c | 187 struct eap_pax_hdr *resp; local 193 if (pos == NULL || len < sizeof(*resp)) { 199 resp = (struct eap_pax_hdr *) pos; 204 resp->op_code, resp->flags, resp->mac_id, resp->dh_group_id, 205 resp->public_key_id); 207 (u8 *) (resp + 1), len - sizeof(*resp) 287 struct eap_pax_hdr *resp; local 455 struct eap_pax_hdr *resp; local [all...] |
H A D | eap_server_psk.c | 217 const struct eap_psk_hdr_2 *resp; local 230 if (cpos == NULL || left < sizeof(*resp)) { 234 resp = (const struct eap_psk_hdr_2 *) cpos; 235 cpos = (const u8 *) (resp + 1); 236 left -= sizeof(*resp); 293 resp->rand_p, EAP_PSK_RAND_LEN); 294 os_memcpy(data->rand_p, resp->rand_p, EAP_PSK_RAND_LEN); 316 wpa_hexdump(MSG_DEBUG, "EAP-PSK: MAC_P", resp->mac_p, EAP_PSK_MAC_LEN); 317 if (os_memcmp_const(mac, resp->mac_p, EAP_PSK_MAC_LEN) != 0) { 333 const struct eap_psk_hdr_4 *resp; local [all...] |
H A D | eap_server_sake.c | 239 struct eap_sake_hdr *resp; local 250 resp = (struct eap_sake_hdr *) pos; 251 version = resp->version; 252 session_id = resp->session_id; 253 subtype = resp->subtype; 413 struct eap_sake_hdr *resp; local 422 resp = (struct eap_sake_hdr *) pos; 424 subtype = resp->subtype; 425 pos = (u8 *) (resp + 1);
|