Searched refs:resp (Results 76 - 100 of 357) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/src/eap_peer/
H A Deap_peap.c461 * @resp: Buffer to return a pointer to the allocated response message. This
470 const struct wpabuf *req, struct wpabuf **resp,
514 *resp = eap_tlv_build_nak(eap_get_id(req),
516 return *resp == NULL ? -1 : 0;
584 *resp = eap_tlv_build_result(sm, data, crypto_tlv != NULL,
596 struct wpabuf **resp)
613 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1);
617 if (eap_tlv_process(sm, data, &iret, req, resp,
646 *resp = eap_msg_alloc(
651 if (*resp
468 eap_tlv_process(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, const struct wpabuf *req, struct wpabuf **resp, int force_failure) argument
592 eap_peap_phase2_request(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, struct wpabuf *req, struct wpabuf **resp) argument
747 struct wpabuf *resp = NULL; local
972 struct wpabuf *resp; local
[all...]
H A Deap_leap.c64 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 Deap_mschapv2.c151 struct wpabuf *resp; local
168 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len,
170 if (resp == NULL)
173 ms = wpabuf_put(resp, sizeof(*ms));
187 wpabuf_put_u8(resp, sizeof(*r)); /* Value-Size */
190 r = wpabuf_put(resp, sizeof(*r));
198 wpabuf_free(resp);
213 wpabuf_free(resp);
221 wpabuf_put_data(resp, identity, identity_len);
224 return resp;
350 struct wpabuf *resp; local
657 struct wpabuf *resp; local
[all...]
H A Deap_gpsk.c283 struct wpabuf *resp; local
304 resp = eap_gpsk_send_gpsk_2(data, identifier,
306 if (resp == NULL)
311 return resp;
320 struct wpabuf *resp; local
332 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len,
334 if (resp == NULL)
337 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2);
338 start = wpabuf_put(resp, 0);
342 wpabuf_put_be16(resp, dat
590 struct wpabuf *resp; local
633 struct wpabuf *resp; local
670 struct wpabuf *resp; local
[all...]
H A Deap_vendor_test.c72 struct wpabuf *resp; local
120 resp = eap_msg_alloc(EAP_VENDOR_ID, EAP_VENDOR_TYPE, 1,
122 if (resp == NULL)
126 wpabuf_put_u8(resp, 2);
131 wpabuf_put_u8(resp, 4);
137 return resp;
H A Deap_fast.c419 struct wpabuf **resp)
435 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1);
455 hdr, resp))
472 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret,
474 if (*resp == NULL ||
486 if (*resp == NULL && config &&
491 } else if (*resp == NULL)
563 struct wpabuf *resp = NULL; local
585 if (eap_fast_phase2_request(sm, data, ret, hdr, &resp)) {
591 return eap_fast_tlv_eap_payload(resp);
415 eap_fast_phase2_request(struct eap_sm *sm, struct eap_fast_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
757 struct wpabuf *resp; local
1085 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument
1136 eap_fast_encrypt_response(struct eap_sm *sm, struct eap_fast_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1183 struct wpabuf *resp = NULL, *tmp; local
1534 struct wpabuf *resp; local
[all...]
H A Deap_ttls.c243 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, argument
249 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4);
251 wpabuf_free(*resp);
252 *resp = NULL;
257 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp));
258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp));
259 pos += wpabuf_len(*resp);
261 wpabuf_free(*resp);
263 *resp
333 eap_ttls_phase2_eap_process(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, struct wpabuf **resp) argument
359 eap_ttls_phase2_request_eap_method(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, u8 method, struct wpabuf **resp) argument
431 eap_ttls_phase2_request_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
474 eap_ttls_phase2_request_mschapv2(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
569 eap_ttls_phase2_request_mschap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
656 eap_ttls_phase2_request_pap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
710 eap_ttls_phase2_request_chap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
791 eap_ttls_phase2_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
1046 eap_ttls_encrypt_response(struct eap_sm *sm, struct eap_ttls_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1070 eap_ttls_process_phase2_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1188 eap_ttls_process_tnc_start(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1227 struct wpabuf *resp = NULL; local
1300 struct wpabuf *resp; local
1592 struct wpabuf *resp; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/
H A Deap_peap.c461 * @resp: Buffer to return a pointer to the allocated response message. This
470 const struct wpabuf *req, struct wpabuf **resp,
514 *resp = eap_tlv_build_nak(eap_get_id(req),
516 return *resp == NULL ? -1 : 0;
584 *resp = eap_tlv_build_result(sm, data, crypto_tlv != NULL,
596 struct wpabuf **resp)
613 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1);
617 if (eap_tlv_process(sm, data, &iret, req, resp,
646 *resp = eap_msg_alloc(
651 if (*resp
468 eap_tlv_process(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, const struct wpabuf *req, struct wpabuf **resp, int force_failure) argument
592 eap_peap_phase2_request(struct eap_sm *sm, struct eap_peap_data *data, struct eap_method_ret *ret, struct wpabuf *req, struct wpabuf **resp) argument
747 struct wpabuf *resp = NULL; local
972 struct wpabuf *resp; local
[all...]
H A Deap_leap.c64 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 Deap_mschapv2.c151 struct wpabuf *resp; local
168 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len,
170 if (resp == NULL)
173 ms = wpabuf_put(resp, sizeof(*ms));
187 wpabuf_put_u8(resp, sizeof(*r)); /* Value-Size */
190 r = wpabuf_put(resp, sizeof(*r));
198 wpabuf_free(resp);
213 wpabuf_free(resp);
221 wpabuf_put_data(resp, identity, identity_len);
224 return resp;
350 struct wpabuf *resp; local
657 struct wpabuf *resp; local
[all...]
H A Deap_gpsk.c283 struct wpabuf *resp; local
304 resp = eap_gpsk_send_gpsk_2(data, identifier,
306 if (resp == NULL)
311 return resp;
320 struct wpabuf *resp; local
332 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len,
334 if (resp == NULL)
337 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2);
338 start = wpabuf_put(resp, 0);
342 wpabuf_put_be16(resp, dat
590 struct wpabuf *resp; local
633 struct wpabuf *resp; local
670 struct wpabuf *resp; local
[all...]
H A Deap_vendor_test.c72 struct wpabuf *resp; local
120 resp = eap_msg_alloc(EAP_VENDOR_ID, EAP_VENDOR_TYPE, 1,
122 if (resp == NULL)
126 wpabuf_put_u8(resp, 2);
131 wpabuf_put_u8(resp, 4);
137 return resp;
H A Deap_fast.c419 struct wpabuf **resp)
435 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1);
455 hdr, resp))
472 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret,
474 if (*resp == NULL ||
486 if (*resp == NULL && config &&
491 } else if (*resp == NULL)
563 struct wpabuf *resp = NULL; local
585 if (eap_fast_phase2_request(sm, data, ret, hdr, &resp)) {
591 return eap_fast_tlv_eap_payload(resp);
415 eap_fast_phase2_request(struct eap_sm *sm, struct eap_fast_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
757 struct wpabuf *resp; local
1085 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument
1136 eap_fast_encrypt_response(struct eap_sm *sm, struct eap_fast_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1183 struct wpabuf *resp = NULL, *tmp; local
1534 struct wpabuf *resp; local
[all...]
H A Deap_ttls.c243 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, argument
249 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4);
251 wpabuf_free(*resp);
252 *resp = NULL;
257 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp));
258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp));
259 pos += wpabuf_len(*resp);
261 wpabuf_free(*resp);
263 *resp
333 eap_ttls_phase2_eap_process(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, struct wpabuf **resp) argument
359 eap_ttls_phase2_request_eap_method(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, u8 method, struct wpabuf **resp) argument
431 eap_ttls_phase2_request_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
474 eap_ttls_phase2_request_mschapv2(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
569 eap_ttls_phase2_request_mschap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
656 eap_ttls_phase2_request_pap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
710 eap_ttls_phase2_request_chap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
791 eap_ttls_phase2_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
1046 eap_ttls_encrypt_response(struct eap_sm *sm, struct eap_ttls_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1070 eap_ttls_process_phase2_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1188 eap_ttls_process_tnc_start(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1227 struct wpabuf *resp = NULL; local
1300 struct wpabuf *resp; local
1592 struct wpabuf *resp; local
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Deap_leap.c64 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 Deap_mschapv2.c151 struct wpabuf *resp; local
168 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len,
170 if (resp == NULL)
173 ms = wpabuf_put(resp, sizeof(*ms));
187 wpabuf_put_u8(resp, sizeof(*r)); /* Value-Size */
190 r = wpabuf_put(resp, sizeof(*r));
198 wpabuf_free(resp);
213 wpabuf_free(resp);
221 wpabuf_put_data(resp, identity, identity_len);
224 return resp;
350 struct wpabuf *resp; local
657 struct wpabuf *resp; local
[all...]
H A Deap_gpsk.c283 struct wpabuf *resp; local
304 resp = eap_gpsk_send_gpsk_2(data, identifier,
306 if (resp == NULL)
311 return resp;
320 struct wpabuf *resp; local
332 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len,
334 if (resp == NULL)
337 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2);
338 start = wpabuf_put(resp, 0);
342 wpabuf_put_be16(resp, dat
590 struct wpabuf *resp; local
633 struct wpabuf *resp; local
670 struct wpabuf *resp; local
[all...]
H A Deap_vendor_test.c72 struct wpabuf *resp; local
120 resp = eap_msg_alloc(EAP_VENDOR_ID, EAP_VENDOR_TYPE, 1,
122 if (resp == NULL)
126 wpabuf_put_u8(resp, 2);
131 wpabuf_put_u8(resp, 4);
137 return resp;
H A Deap_fast.c419 struct wpabuf **resp)
435 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1);
455 hdr, resp))
472 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret,
474 if (*resp == NULL ||
486 if (*resp == NULL && config &&
491 } else if (*resp == NULL)
563 struct wpabuf *resp = NULL; local
585 if (eap_fast_phase2_request(sm, data, ret, hdr, &resp)) {
591 return eap_fast_tlv_eap_payload(resp);
415 eap_fast_phase2_request(struct eap_sm *sm, struct eap_fast_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
757 struct wpabuf *resp; local
1085 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument
1136 eap_fast_encrypt_response(struct eap_sm *sm, struct eap_fast_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1183 struct wpabuf *resp = NULL, *tmp; local
1534 struct wpabuf *resp; local
[all...]
H A Deap_ttls.c243 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, argument
249 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4);
251 wpabuf_free(*resp);
252 *resp = NULL;
257 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp));
258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp));
259 pos += wpabuf_len(*resp);
261 wpabuf_free(*resp);
263 *resp
333 eap_ttls_phase2_eap_process(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, struct wpabuf **resp) argument
359 eap_ttls_phase2_request_eap_method(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, u8 method, struct wpabuf **resp) argument
431 eap_ttls_phase2_request_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
474 eap_ttls_phase2_request_mschapv2(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
569 eap_ttls_phase2_request_mschap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
656 eap_ttls_phase2_request_pap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
710 eap_ttls_phase2_request_chap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct wpabuf **resp) argument
791 eap_ttls_phase2_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument
1046 eap_ttls_encrypt_response(struct eap_sm *sm, struct eap_ttls_data *data, struct wpabuf *resp, u8 identifier, struct wpabuf **out_data) argument
1070 eap_ttls_process_phase2_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1188 eap_ttls_process_tnc_start(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct ttls_parse_avp *parse, struct wpabuf **resp) argument
1227 struct wpabuf *resp = NULL; local
1300 struct wpabuf *resp; local
1592 struct wpabuf *resp; local
[all...]
/external/libphonenumber/demo/src/com/google/phonenumbers/
H A DPhoneNumberParserServlet.java56 public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { argument
98 resp.setContentType("text/html");
99 resp.setCharacterEncoding("UTF-8");
100 resp.getWriter().println("<html><head>");
101 resp.getWriter().println(
103 resp.getWriter().println("</head>");
104 resp.getWriter().println("<body>");
105 resp.getWriter().println("Phone Number entered: " + phoneNumber + "<br>");
106 resp.getWriter().println("defaultCountry entered: " + defaultCountry + "<br>");
107 resp
[all...]
/external/chromium-trace/catapult/third_party/WebOb/webob/
H A Dclient.py97 resp = exc.HTTPGatewayTimeout()
98 return resp(environ, start_response)
103 resp = exc.HTTPBadGateway(
106 return resp(environ, start_response)
109 resp = exc.HTTPBadGateway("Connection refused")
110 return resp(environ, start_response)
/external/chromium-trace/catapult/third_party/typ/typ/fakes/tests/
H A Dhost_fake_test.py77 resp = FakeResponse(unicode('foo'), url)
78 h.fetch_responses[url] = resp
82 self.assertEqual(resp, actual_resp)
/external/chromium-trace/catapult/third_party/typ/typ/
H A Dpool.py82 msg_type, resp = self.responses.get()
84 self._handle_error(resp)
88 return resp
121 msg_type, resp = self.responses.get()
123 error = resp
129 final_responses.append(resp[1])
131 self.discarded_responses.append(resp)
168 resp = callback(context_after_pre, args)
169 responses.put((_MessageType.Response, resp))
/external/libbrillo/brillo/http/
H A Dhttp_request_unittest.cc144 auto resp = request.GetResponseAndBlock(nullptr); local
145 EXPECT_NE(nullptr, resp.get());
160 [this, &resp_data](RequestID request_id, std::unique_ptr<Response> resp) {
164 EXPECT_EQ(status_code::Partial, resp->GetStatusCode());
168 EXPECT_EQ("Partial completion", resp->GetStatusText());
172 EXPECT_EQ(mime::text::kHtml, resp->GetContentType());
174 EXPECT_EQ(resp_data, resp->ExtractDataAsString());
186 std::unique_ptr<Response> resp{new Response{connection_}};
187 success_callback.Run(23, std::move(resp));

Completed in 340 milliseconds

1234567891011>>