Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 44) sorted by relevance

12

/hostap-latest/src/wps/
Dhttp_client.c187 char * http_client_url_parse(const char *url, struct sockaddr_in *dst, in http_client_url_parse() argument
192 u = os_strdup(url); in http_client_url_parse()
215 url, addr, port); in http_client_url_parse()
236 struct http_client * http_client_url(const char *url, in http_client_url() argument
248 if (os_strncmp(url, "http://", 7) != 0) in http_client_url()
250 u = http_client_url_parse(url, &dst, &path); in http_client_url()
255 req_buf = wpabuf_alloc(os_strlen(url) + 1000); in http_client_url()
317 char * http_link_update(char *url, const char *base) in http_link_update() argument
326 if (url == NULL) in http_link_update()
329 if (os_strncmp(url, "http://", 7) == 0) in http_link_update()
[all …]
Dhttp_client.h21 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
29 struct http_client * http_client_url(const char *url,
38 char * http_link_update(char *url, const char *base);
Dwps_er.c225 char *url, *path; in wps_er_ap_unsubscribe() local
239 url = http_client_url_parse(ap->event_sub_url, &dst, &path); in wps_er_ap_unsubscribe()
240 if (url == NULL) { in wps_er_ap_unsubscribe()
247 os_free(url); in wps_er_ap_unsubscribe()
257 os_free(url); in wps_er_ap_unsubscribe()
429 char *url, *path; in wps_er_subscribe() local
442 url = http_client_url_parse(ap->event_sub_url, &dst, &path); in wps_er_subscribe()
443 if (url == NULL) { in wps_er_subscribe()
450 os_free(url); in wps_er_subscribe()
463 os_free(url); in wps_er_subscribe()
[all …]
/hostap-latest/wpadebug/src/w1/fi/wpadebug/
DWpaWebViewActivity.java40 String url = intent.getStringExtra(EXTRA_MESSAGE); in onCreate() local
41 Log.d(TAG, "url=" + url); in onCreate()
42 if (url.equals("FINISH")) { in onCreate()
64 mWebView.loadUrl(url); in onCreate()
79 String url = intent.getStringExtra(EXTRA_MESSAGE); in onNewIntent() local
80 Log.d(TAG, "url=" + url); in onNewIntent()
82 if (url.equals("FINISH")) { in onNewIntent()
86 mWebView.loadUrl(url); in onNewIntent()
91 public boolean shouldOverrideUrlLoading(WebView view, String url) in shouldOverrideUrlLoading() argument
93 Log.d(TAG, "shouldOverrideUrlLoading: url=" + url); in shouldOverrideUrlLoading()
[all …]
/hostap-latest/src/utils/
Dbrowser-system.c34 const char *url; in http_req() local
37 url = http_request_get_uri(req); in http_req()
38 wpa_printf(MSG_INFO, "Browser response received: %s", url); in http_req()
40 if (os_strcmp(url, "/") == 0) { in http_req()
43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
44 data->success = atoi(url + 5); in http_req()
65 int hs20_web_browser(const char *url, int ignore_tls) in hs20_web_browser() argument
72 wpa_printf(MSG_INFO, "Launching system browser to %s", url); in hs20_web_browser()
101 argv[1] = (void *) url; in hs20_web_browser()
Dbrowser-android.c34 const char *url; in http_req() local
37 url = http_request_get_uri(req); in http_req()
38 wpa_printf(MSG_INFO, "Browser response received: %s", url); in http_req()
40 if (os_strcmp(url, "/") == 0) { in http_req()
43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
44 data->success = atoi(url + 5); in http_req()
65 int hs20_web_browser(const char *url, int ignore_tls) in hs20_web_browser() argument
72 wpa_printf(MSG_INFO, "Launching Android browser to %s", url); in hs20_web_browser()
105 argv[5] = (void *) url; in hs20_web_browser()
Dbrowser-wpadebug.c34 const char *url; in http_req() local
37 url = http_request_get_uri(req); in http_req()
38 wpa_printf(MSG_INFO, "Browser response received: %s", url); in http_req()
40 if (os_strcmp(url, "/") == 0) { in http_req()
43 } else if (os_strncmp(url, "/osu/", 5) == 0) { in http_req()
44 data->success = atoi(url + 5); in http_req()
66 int hs20_web_browser(const char *url, int ignore_tls) in hs20_web_browser() argument
73 wpa_printf(MSG_INFO, "Launching wpadebug browser to %s", url); in hs20_web_browser()
112 argv[10] = (void *) url; in hs20_web_browser()
Dhttp-utils.h36 const char *url; member
50 int http_download_file(struct http_ctx *ctx, const char *url,
52 char * http_post(struct http_ctx *ctx, const char *url, const char *data,
Dbrowser.h13 static inline int hs20_web_browser(const char *url, int ignore_tls) in hs20_web_browser() argument
18 int hs20_web_browser(const char *url, int ignore_tls);
Dhttp_curl.c67 const char *url; member
852 hcert->url = ctx->url ? ctx->url : ctx->svc_address; in parse_cert()
1595 int http_download_file(struct http_ctx *ctx, const char *url, in http_download_file() argument
1605 ctx->url = url; in http_download_file()
1608 url, fname, ca_fname); in http_download_file()
1617 curl_easy_setopt(curl, CURLOPT_URL, url); in http_download_file()
1651 ctx->url = NULL; in http_download_file()
1661 char * http_post(struct http_ctx *ctx, const char *url, const char *data, in http_post() argument
1675 ctx->url = url; in http_post()
1676 wpa_printf(MSG_DEBUG, "curl: HTTP POST to %s", url); in http_post()
[all …]
/hostap-latest/src/ap/
Dhs20.c104 u8 osu_method, const char *url) in hs20_send_wnm_notification() argument
113 if (url) { in hs20_send_wnm_notification()
114 len = 1 + os_strlen(url); in hs20_send_wnm_notification()
117 "WNM-Notification: '%s'", url); in hs20_send_wnm_notification()
136 if (url) { in hs20_send_wnm_notification()
138 wpabuf_put_data(buf, url, len - 1); in hs20_send_wnm_notification()
190 const u8 *addr, const char *url) in hs20_send_wnm_notification_t_c() argument
196 if (!url) { in hs20_send_wnm_notification_t_c()
201 url_len = os_strlen(url); in hs20_send_wnm_notification_t_c()
205 url); in hs20_send_wnm_notification_t_c()
[all …]
Dhs20.h17 u8 osu_method, const char *url);
22 const u8 *addr, const char *url);
Dwnm_ap.h19 struct sta_info *sta, const char *url,
24 const char *url, const u8 *nei_rep, size_t nei_rep_len,
Dctrl_iface_ap.c1306 const char *url, *timerstr; in hostapd_ctrl_iface_ess_disassoc() local
1329 url = os_strchr(timerstr, ' '); in hostapd_ctrl_iface_ess_disassoc()
1330 if (url == NULL) in hostapd_ctrl_iface_ess_disassoc()
1332 url++; in hostapd_ctrl_iface_ess_disassoc()
1334 return wnm_send_ess_disassoc_imminent(hapd, sta, url, disassoc_timer); in hostapd_ctrl_iface_ess_disassoc()
1347 char *url = NULL; in hostapd_ctrl_iface_bss_tm_req() local
1420 url = os_malloc(len + 1); in hostapd_ctrl_iface_bss_tm_req()
1421 if (url == NULL) in hostapd_ctrl_iface_bss_tm_req()
1423 os_memcpy(url, pos, len); in hostapd_ctrl_iface_bss_tm_req()
1424 url[len] = '\0'; in hostapd_ctrl_iface_bss_tm_req()
[all …]
Dwnm_ap.c909 struct sta_info *sta, const char *url, in wnm_send_ess_disassoc_imminent() argument
937 url_len = os_strlen(url); in wnm_send_ess_disassoc_imminent()
941 os_memcpy(pos, url, url_len); in wnm_send_ess_disassoc_imminent()
962 const char *url, const u8 *nei_rep, size_t nei_rep_len, in wnm_send_bss_tm_req() argument
1000 if (url) { in wnm_send_bss_tm_req()
1002 url_len = os_strlen(url); in wnm_send_bss_tm_req()
1009 os_memcpy(pos, url, url_len); in wnm_send_bss_tm_req()
/hostap-latest/hs20/client/
Dosu_client.h89 int cmd_prov(struct hs20_osu_client *ctx, const char *url);
90 int cmd_sim_prov(struct hs20_osu_client *ctx, const char *url);
95 int cmd_oma_dm_prov(struct hs20_osu_client *ctx, const char *url);
96 int cmd_oma_dm_sim_prov(struct hs20_osu_client *ctx, const char *url);
116 int est_load_cacerts(struct hs20_osu_client *ctx, const char *url);
117 int est_build_csr(struct hs20_osu_client *ctx, const char *url);
118 int est_simple_enroll(struct hs20_osu_client *ctx, const char *url,
Doma_dm_client.c109 const char *url, int msgid) in oma_dm_build_hdr() argument
129 oma_dm_add_locuri(ctx, synchdr, "Target", url); in oma_dm_build_hdr()
299 const char *url, int msgid, const char *oper) in build_oma_dm_1() argument
305 syncml = oma_dm_build_hdr(ctx, url, msgid); in build_oma_dm_1()
337 const char *url, int msgid) in build_oma_dm_1_sub_reg() argument
341 syncml = build_oma_dm_1(ctx, url, msgid, DM_HS20_SUBSCRIPTION_CREATION); in build_oma_dm_1_sub_reg()
350 const char *url, int msgid) in build_oma_dm_1_sub_prov() argument
354 syncml = build_oma_dm_1(ctx, url, msgid, in build_oma_dm_1_sub_prov()
364 const char *url, int msgid) in build_oma_dm_1_pol_upd() argument
368 syncml = build_oma_dm_1(ctx, url, msgid, DM_HS20_POLICY_UPDATE); in build_oma_dm_1_pol_upd()
[all …]
Dest.c118 int est_load_cacerts(struct hs20_osu_client *ctx, const char *url) in est_load_cacerts() argument
126 buflen = os_strlen(url) + 100; in est_load_cacerts()
131 os_snprintf(buf, buflen, "%s/cacerts", url); in est_load_cacerts()
575 int est_build_csr(struct hs20_osu_client *ctx, const char *url) in est_build_csr() argument
584 buflen = os_strlen(url) + 100; in est_build_csr()
589 os_snprintf(buf, buflen, "%s/csrattrs", url); in est_build_csr()
648 int est_simple_enroll(struct hs20_osu_client *ctx, const char *url, in est_simple_enroll() argument
673 buflen = os_strlen(url) + 100; in est_simple_enroll()
681 os_snprintf(buf, buflen, "%s/simplereenroll", url); in est_simple_enroll()
689 os_snprintf(buf, buflen, "%s/simpleenroll", url); in est_simple_enroll()
Dosu_client.c140 char *url, *user = NULL, *pw = NULL; in osu_get_certificate() local
163 url = xml_node_get_text(ctx->xml, node); in osu_get_certificate()
164 if (url == NULL) { in osu_get_certificate()
168 wpa_printf(MSG_INFO, "enrollmentServerURI: %s", url); in osu_get_certificate()
169 write_summary(ctx, "enrollmentServerURI: %s", url); in osu_get_certificate()
203 if (est_load_cacerts(ctx, url) < 0 || in osu_get_certificate()
204 est_build_csr(ctx, url) < 0 || in osu_get_certificate()
205 est_simple_enroll(ctx, url, user, pw) < 0) in osu_get_certificate()
210 xml_node_get_text_free(ctx->xml, url); in osu_get_certificate()
308 char *url, *hash; in download_cert() local
[all …]
Dspp_client.c951 int cmd_prov(struct hs20_osu_client *ctx, const char *url) in cmd_prov() argument
956 if (url == NULL) { in cmd_prov()
963 url, ctx->ca_fname ? ctx->ca_fname : "N/A"); in cmd_prov()
966 ctx->server_url = os_strdup(url); in cmd_prov()
968 if (soap_init_client(ctx->http, url, ctx->ca_fname, NULL, NULL, NULL, in cmd_prov()
978 int cmd_sim_prov(struct hs20_osu_client *ctx, const char *url) in cmd_sim_prov() argument
980 if (url == NULL) { in cmd_sim_prov()
988 ctx->server_url = os_strdup(url); in cmd_sim_prov()
996 if (soap_init_client(ctx->http, url, ctx->ca_fname, NULL, NULL, NULL, in cmd_sim_prov()
/hostap-latest/wpa_supplicant/
Dwnm_sta.c1444 char url[256]; in ieee802_11_rx_bss_trans_mgmt_req() local
1458 os_memcpy(url, pos, url_len); in ieee802_11_rx_bss_trans_mgmt_req()
1459 url[url_len] = '\0'; in ieee802_11_rx_bss_trans_mgmt_req()
1464 wpa_s->wnm_dissoc_timer * beacon_int * 128 / 125, url); in ieee802_11_rx_bss_trans_mgmt_req()
1766 char *url; in ieee802_11_rx_wnm_notif_req_wfa() local
1776 url = NULL; in ieee802_11_rx_wnm_notif_req_wfa()
1785 url = os_malloc(url_len + 1); in ieee802_11_rx_wnm_notif_req_wfa()
1786 if (url == NULL) in ieee802_11_rx_wnm_notif_req_wfa()
1788 os_memcpy(url, pos, url_len); in ieee802_11_rx_wnm_notif_req_wfa()
1789 url[url_len] = '\0'; in ieee802_11_rx_wnm_notif_req_wfa()
[all …]
Dhs20_supplicant.h31 const char *url, u8 osu_method);
33 u16 reauth_delay, const char *url);
34 void hs20_rx_t_c_acceptance(struct wpa_supplicant *wpa_s, const char *url);
/hostap-latest/tests/hwsim/
Dtest_ap_wps.py2592 url = urlparse(location)
2593 conn = HTTPConnection(url.netloc)
3069 url = urlparse(location)
3070 conn = HTTPConnection(url.netloc)
3145 url = urlparse(location)
3146 conn = HTTPConnection(url.netloc)
3503 url = urlparse(location)
3504 conn = HTTPConnection(url.netloc)
3559 url = urlparse(location)
3560 conn = HTTPConnection(url.netloc, timeout=0.2)
[all …]
/hostap-latest/hs20/server/ca/
Docsp-req.sh5 …y_other demoCA/cacert.pem -trust_other -issuer demoCA/cacert.pem -cert $i -url http://localhost:88…
Docsp-update-cache.sh10 -url http://localhost:8888/ \

12