Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 24 of 24) sorted by relevance

/hostap-latest/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp316 snprintf(phase2, sizeof(phase2), "auth=%s", in addNetwork()
321 snprintf(phase2, sizeof(phase2), "autheap=%s", in addNetwork()
325 snprintf(phase2, sizeof(phase2), "auth=%s", in addNetwork()
330 snprintf(phase2, sizeof(phase2), "auth=%s", in addNetwork()
336 snprintf(phase2, sizeof(phase2), in addNetwork()
345 snprintf(blob, sizeof(blob), in addNetwork()
404 snprintf(cmd, sizeof(cmd), "ENABLE_NETWORK %d", id); in addNetwork()
432 snprintf(cmd, sizeof(cmd), "SET_NETWORK %d %s %s%s%s", in setNetworkParam()
491 snprintf(buf, sizeof(buf), "wep_key%d", id); in writeWepKey()
512 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", network_id); in paramsFromConfig()
[all …]
Dpeers.cpp325 snprintf(cmd, sizeof(cmd), "WPS_ER_PIN %s %s %s", in enter_pin()
330 snprintf(cmd, sizeof(cmd), "WPS_PIN %s %s", in enter_pin()
479 res = snprintf(cmd, sizeof(cmd), "STA-NEXT %s", reply); in add_stations()
494 snprintf(cmd, sizeof(cmd), "STA %s", addr); in add_single_station()
666 snprintf(cmd, sizeof(cmd), "BSS %d", index++); in add_scan_results()
683 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d mode", id); in add_persistent()
1066 snprintf(cmd, sizeof(cmd), "GET_NETWORK %d ssid", id); in event_notify()
1321 snprintf(cmd, sizeof(cmd), "BSS ID-%d", items[1].toInt()); in event_notify()
1354 snprintf(cmd, sizeof(cmd), "P2P_CONNECT %s %s display", in ctx_p2p_connect()
1388 snprintf(cmd, sizeof(cmd), "P2P_CONNECT %s %s", in ctx_p2p_connect()
[all …]
Dscanresults.cpp65 snprintf(cmd, sizeof(cmd), "BSS %d", index++); in updateResults()
Daddinterface.cpp197 snprintf(cmd, sizeof(cmd), in interfaceSelected()
Dwpagui.cpp365 snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, ctrl_iface); in openCtrlConnection()
371 snprintf(cfile, flen, "%s", ctrl_iface); in openCtrlConnection()
/hostap-latest/src/common/
Dwpa_helpers.c254 snprintf(buf, sizeof(buf), "SET_NETWORK %d %s %s", id, field, value); in set_network()
263 snprintf(buf, sizeof(buf), "SET_NETWORK %d %s \"%s\"", in set_network_quoted()
282 snprintf(buf, sizeof(buf), "SET_CRED %d %s %s", id, field, value); in set_cred()
291 snprintf(buf, sizeof(buf), "SET_CRED %d %s \"%s\"", in set_cred_quoted()
/hostap-latest/hostapd/
Dhostapd_cli.c124 snprintf(cfile, flen, "%s/%s", ctrl_iface_dir, ifname); in hostapd_cli_open_connection()
332 snprintf(buf, sizeof(buf), "STA %s %s", argv[0], argv[1]); in hostapd_cli_cmd_sta()
334 snprintf(buf, sizeof(buf), "STA %s", argv[0]); in hostapd_cli_cmd_sta()
363 snprintf(buf, sizeof(buf), "NEW_STA %s", argv[0]); in hostapd_cli_cmd_new_sta()
429 snprintf(buf, sizeof(buf), "SA_QUERY %s", argv[0]); in hostapd_cli_cmd_sa_query()
445 snprintf(buf, sizeof(buf), "WPS_PIN %s %s %s %s", in hostapd_cli_cmd_wps_pin()
448 snprintf(buf, sizeof(buf), "WPS_PIN %s %s %s", in hostapd_cli_cmd_wps_pin()
451 snprintf(buf, sizeof(buf), "WPS_PIN %s %s", argv[0], argv[1]); in hostapd_cli_cmd_wps_pin()
600 snprintf(buf, sizeof(buf), "WPS_AP_PIN %s %s %s", in hostapd_cli_cmd_wps_ap_pin()
603 snprintf(buf, sizeof(buf), "WPS_AP_PIN %s %s", in hostapd_cli_cmd_wps_ap_pin()
[all …]
Dhlr_auc_gw.c510 snprintf(name, sizeof(name), "%s.new", fname); in update_milenage_file()
538 pos += snprintf(pos, end - pos, "%s ", m->imsi); in update_milenage_file()
555 snprintf(name, sizeof(name), "%s.bak", fname); in update_milenage_file()
561 snprintf(name, sizeof(name), "%s.new", fname); in update_milenage_file()
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
652 ret = snprintf(rpos, rend - rpos, " FAILURE"); in sim_req_auth()
786 ret = snprintf(pos, end - pos, "AKA-RESP-AUTH %s ", imsi); in aka_req_auth()
791 ret = snprintf(pos, end - pos, "FAILURE"); in aka_req_auth()
/hostap-latest/hs20/server/
Dspp_server.c75 snprintf(addr, sizeof(addr), MACSTR, MAC2STR(mac_addr)); in db_add_session()
676 snprintf(str, sizeof(str), "%04u-%02u-%02uT%02u:%02u:%02uZ", in add_creation_date()
888 snprintf(new_pw, sizeof(new_pw), "%s", pw); in build_sub_rem_resp()
906 snprintf(buf, sizeof(buf), in build_sub_rem_resp()
997 snprintf(buf, sizeof(buf), in policy_remediation()
1057 snprintf(uri, sizeof(uri), "%s%s", val, session_id); in user_remediation()
1079 snprintf(uri, sizeof(uri), "%s%s", val, session_id); in free_remediation()
1168 snprintf(fname, sizeof(fname), "%s/spp/policy/%s.xml", in read_policy_file()
1272 snprintf(buf, sizeof(buf), in hs20_policy_update()
1332 snprintf(fname, sizeof(fname), "%s/spp/dm_ddf-v1_2.dtd", ctx->root_dir); in spp_get_mo()
[all …]
/hostap-latest/src/utils/
Dos.h645 #define os_snprintf snprintf
754 #undef snprintf
755 #define snprintf OS_DO_NOT_USE_snprintf macro
Dbrowser.c55 snprintf(buf, sizeof(buf), "[%d%%] %s", ctx->progress, in browser_update_title()
Dcommon.h400 int snprintf(char *str, size_t size, const char *format, ...);
Dwpa_debug.c169 snprintf(buf, sizeof(buf) - 1, "%s/tracing/trace_marker", path); in wpa_debug_open_linux_tracing()
Dhttp_curl.c1684 snprintf(ct, sizeof(ct), "Content-Type: %s", content_type); in http_post()
/hostap-latest/hs20/client/
Dosu_client.c500 snprintf(fname, sizeof(fname), "%s/ca.pem", dir); in download_trust_roots()
502 snprintf(fname, sizeof(fname), "%s/polupd-ca.pem", dir); in download_trust_roots()
506 snprintf(fname, sizeof(fname), "%s/aaa-ca.pem", dir); in download_trust_roots()
604 snprintf(fname, fname_len, "SP/%s", fqdn); in hs20_add_pps_mo()
618 snprintf(fname, fname_len, "SP/%s/pps.xml", fqdn); in hs20_add_pps_mo()
722 snprintf(backup, sizeof(backup), "%s.bak", pps_fname); in update_pps_file()
862 snprintf(val, sizeof(val), "%s,%d,%d,%s", txt, in set_pps_cred_policy_prp()
1419 snprintf(pos, end - pos, "%02x", pw[i]); in set_pps_cred_password()
2262 snprintf(buf, sizeof(buf), "SELECT_NETWORK %d", id); in osu_connect()
2276 snprintf(buf, sizeof(buf), "REMOVE_NETWORK %d", id); in osu_connect()
[all …]
Doma_dm_client.c73 snprintf(buf, sizeof(buf), "%d", val); in int2str()
290 snprintf(buf, sizeof(buf), "Reversed-Domain-Name: %s", oper); in oma_dm_add_hs20_generic_alert()
/hostap-latest/wlantest/
Drx_ip.c71 snprintf(buf, sizeof(buf), "%s", inet_ntoa(addr)); in rx_data_icmp()
Dwired.c185 snprintf(buf, sizeof(buf), "%s", inet_ntoa(addr)); in process_radius()
/hostap-latest/src/drivers/
Ddriver_nl80211_monitor.c365 snprintf(buf, IFNAMSIZ, "mon-%s", drv->first_bss->ifname + 4); in nl80211_create_monitor_interface()
Ddriver_wext.c756 snprintf(buf, sizeof(buf) - 1, "/sys/class/net/%s/phy80211/name", in wext_get_phy_name()
878 ret = snprintf(buf, sizeof(buf), "/sys/class/net/%s/device/net/%s/type", in wext_hostap_ifname()
910 snprintf(buf, sizeof(buf), "/sys/class/net/%s/device/net", drv->ifname); in wext_add_hostap()
943 snprintf(path, sizeof(path), "/sys/class/net/%s/device/driver", in wext_check_hostap()
Ddriver_bsd.c893 snprintf(buf, sizeof(buf), MACSTR, MAC2STR(addr)); in ether_sprintf()
895 snprintf(buf, sizeof(buf), MACSTR, 0,0,0,0,0,0); in ether_sprintf()
Ddriver_hostap.c596 snprintf(buf, sizeof(buf), "/proc/net/hostap/%s/" MACSTR, in hostap_read_sta_data()
/hostap-latest/wpa_supplicant/
Dnmake.mak59 # at least for now since snprintf and strncpy can be used in a safe way
Dhs20_supplicant.c532 snprintf(fname, sizeof(fname), "%s/osu-icon-%u.%s", in hs20_process_icon_binary_file()
760 snprintf(fname, sizeof(fname), "%s/osu-providers.txt", in hs20_osu_fetch_done()