Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 112) sorted by relevance

12345

/hostap-3.7.0/wpa_supplicant/
Dconfig_file.c266 static int wpa_config_process_blob(struct wpa_config *config, FILE *f, in wpa_config_process_blob() argument
286 wpa_config_set_blob(config, blob); in wpa_config_process_blob()
299 struct wpa_config *config; in wpa_config_read() local
306 config = cfgp; in wpa_config_read()
308 config = wpa_config_alloc_empty(NULL, NULL); in wpa_config_read()
309 if (config == NULL) { in wpa_config_read()
314 tail = head = config->ssid; in wpa_config_read()
317 cred_tail = cred_head = config->cred; in wpa_config_read()
326 if (config != cfgp) in wpa_config_read()
327 os_free(config); in wpa_config_read()
[all …]
Dconfig_winreg.c50 static int wpa_config_read_blobs(struct wpa_config *config, HKEY hk) in wpa_config_read_blobs() argument
110 wpa_config_set_blob(config, blob); in wpa_config_read_blobs()
163 static int wpa_config_read_global_uuid(struct wpa_config *config, HKEY hk) in wpa_config_read_global_uuid() argument
172 if (uuid_str2bin(str, config->uuid)) in wpa_config_read_global_uuid()
181 static int wpa_config_read_global_os_version(struct wpa_config *config, in wpa_config_read_global_os_version() argument
191 if (hexstr2bin(str, config->os_version, 4)) in wpa_config_read_global_os_version()
201 static int wpa_config_read_global(struct wpa_config *config, HKEY hk) in wpa_config_read_global() argument
206 wpa_config_read_reg_dword(hk, TEXT("ap_scan"), &config->ap_scan); in wpa_config_read_global()
208 &config->fast_reauth); in wpa_config_read_global()
210 (int *) &config->dot11RSNAConfigPMKLifetime); in wpa_config_read_global()
[all …]
Dconfig.c2675 int wpa_config_add_prio_network(struct wpa_config *config, in wpa_config_add_prio_network() argument
2685 for (prio = 0; prio < config->num_prio; prio++) { in wpa_config_add_prio_network()
2686 prev = config->pssid[prio]; in wpa_config_add_prio_network()
2696 nlist = os_realloc_array(config->pssid, config->num_prio + 1, in wpa_config_add_prio_network()
2701 for (prio = 0; prio < config->num_prio; prio++) { in wpa_config_add_prio_network()
2704 (config->num_prio - prio) * in wpa_config_add_prio_network()
2711 config->num_prio++; in wpa_config_add_prio_network()
2712 config->pssid = nlist; in wpa_config_add_prio_network()
2727 int wpa_config_update_prio_list(struct wpa_config *config) in wpa_config_update_prio_list() argument
2732 os_free(config->pssid); in wpa_config_update_prio_list()
[all …]
Dconfig_none.c22 struct wpa_config *config; in wpa_config_read() local
27 config = cfgp; in wpa_config_read()
29 config = wpa_config_alloc_empty(NULL, NULL); in wpa_config_read()
30 if (config == NULL) in wpa_config_read()
33 config->dpp_config_processing = 2; in wpa_config_read()
34 return config; in wpa_config_read()
38 int wpa_config_write(const char *name, struct wpa_config *config) in wpa_config_write() argument
48 for (ssid = config->ssid; ssid; ssid = ssid->next) { in wpa_config_write()
52 for (blob = config->blobs; blob; blob = blob->next) { in wpa_config_write()
Dconfig.h1709 void wpa_config_foreach_network(struct wpa_config *config,
1712 struct wpa_ssid * wpa_config_get_network(struct wpa_config *config, int id);
1713 struct wpa_ssid * wpa_config_add_network(struct wpa_config *config);
1714 int wpa_config_remove_network(struct wpa_config *config, int id);
1720 int wpa_config_dump_values(struct wpa_config *config, char *buf,
1722 int wpa_config_get_value(const char *name, struct wpa_config *config,
1729 int wpa_config_add_prio_network(struct wpa_config *config,
1731 int wpa_config_update_prio_list(struct wpa_config *config);
1732 const struct wpa_config_blob * wpa_config_get_blob(struct wpa_config *config,
1734 void wpa_config_set_blob(struct wpa_config *config,
[all …]
DREADME-DPP24 Build config setup
27 The following parameters must be included in the config file used to
30 wpa_supplicant build config
33 Enable DPP in wpa_supplicant build config file
37 hostapd build config
40 Enable DPP in hostapd build config file
44 Configurator build config
48 config. For an AP to act as a Configurator, Interworking needs to be
54 Sample supplicant config file before provisioning
63 Sample hostapd config file before provisioning
[all …]
Dmain_winsvc.c66 TCHAR adapter[TBUFLEN], config[TBUFLEN], ctrl_interface[TBUFLEN]; in read_interface() local
103 buflen = sizeof(config); in read_interface()
105 (LPBYTE) config, &buflen); in read_interface()
107 config[sizeof(config) - 1] = '\0'; in read_interface()
108 wpa_unicode2ascii_inplace(config); in read_interface()
110 (int) buflen, (char *) config); in read_interface()
111 iface.confname = (char *) config; in read_interface()
/hostap-3.7.0/tests/hwsim/
Dtest_wpas_config.py145 def check_config(capa, config): argument
146 with open(config, "r") as f:
164 config = os.path.join(params['logdir'], 'wpas_config_file.conf')
165 if os.path.exists(config):
167 os.remove(config)
171 os.rmdir(config)
177 wpas.interface_add("wlan5", config=config)
185 with open(config, "w") as f:
200 wpas.interface_add("wlan5", config=config)
249 data1 = check_config(capa, config)
[all …]
Dbuild.sh21 -f | --force-config ) shift
48 if [ ! -e .config -o $force_config -eq 1 ]; then
49 if ! cmp ../tests/hwsim/example-hostapd.config .config >/dev/null 2>&1 ; then
50 cp ../tests/hwsim/example-hostapd.config .config
55 if ! grep -q CONFIG_CODE_COVERAGE .config; then
56 echo CONFIG_CODE_COVERAGE=y >> .config
66 if [ ! -e .config -o $force_config -eq 1 ]; then
67 if ! cmp ../tests/hwsim/example-wpa_supplicant.config .config >/dev/null 2>&1 ; then
68 cp ../tests/hwsim/example-wpa_supplicant.config .config
73 if ! grep -q CONFIG_CODE_COVERAGE .config; then
[all …]
Dhwsim_utils.py38 config=True, timeout=5, argument
44 if config:
83 ifname1=None, ifname2=None, config=True, timeout=5, argument
98 if config:
159 if config:
171 ifname1=None, ifname2=None, config=True, timeout=5, argument
184 ifname1, ifname2, config=config,
/hostap-3.7.0/tests/hwsim/vm/
Dbuild-codecov.sh16 cat ../../../wpa_supplicant/.config > $TMPDIR/wpa_supplicant.config
17 echo "CONFIG_CODE_COVERAGE=y" >> $TMPDIR/wpa_supplicant.config
18 cat ../../../hostapd/.config > $TMPDIR/hostapd.config
19 echo "CONFIG_CODE_COVERAGE=y" >> $TMPDIR/hostapd.config
24 mv wpa_supplicant.config alt-wpa_supplicant/wpa_supplicant/.config
27 cp hostapd.config alt-hostapd/hostapd/.config
30 cp hostapd.config alt-hostapd-as/hostapd/.config
33 mv hostapd.config alt-hlr_auc_gw/hostapd/.config
/hostap-3.7.0/src/eap_peer/
Deap.c141 struct eap_peer_config *config, in eap_config_allowed_method() argument
147 if (config == NULL || config->eap_methods == NULL) in eap_config_allowed_method()
150 m = config->eap_methods; in eap_config_allowed_method()
404 struct eap_peer_config *config = eap_get_config(sm); in SM_STATE() local
412 if (sm->reqMethod == EAP_TYPE_TLS && config && in SM_STATE()
413 (config->pending_req_pin || in SM_STATE()
414 config->pending_req_passphrase)) { in SM_STATE()
443 static char * eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) in eap_get_realm() argument
448 if (!config) in eap_get_realm()
451 if (config->identity) { in eap_get_realm()
[all …]
Deap_mschapv2.c298 struct eap_peer_config *config = eap_get_config(sm); in eap_mschapv2_password_changed() local
299 if (config && config->new_password) { in eap_mschapv2_password_changed()
304 bin_clear_free(config->password, config->password_len); in eap_mschapv2_password_changed()
305 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) { in eap_mschapv2_password_changed()
307 } else if (config->flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH) { in eap_mschapv2_password_changed()
308 config->password = os_malloc(16); in eap_mschapv2_password_changed()
309 config->password_len = 16; in eap_mschapv2_password_changed()
310 if (config->password && in eap_mschapv2_password_changed()
311 nt_password_hash(config->new_password, in eap_mschapv2_password_changed()
312 config->new_password_len, in eap_mschapv2_password_changed()
[all …]
Deap_tls_common.c109 struct eap_peer_cert_config *config) in eap_tls_cert_params_from_conf() argument
111 params->ca_cert = config->ca_cert; in eap_tls_cert_params_from_conf()
112 params->ca_path = config->ca_path; in eap_tls_cert_params_from_conf()
113 params->client_cert = config->client_cert; in eap_tls_cert_params_from_conf()
114 params->private_key = config->private_key; in eap_tls_cert_params_from_conf()
115 params->private_key_passwd = config->private_key_passwd; in eap_tls_cert_params_from_conf()
116 params->dh_file = config->dh_file; in eap_tls_cert_params_from_conf()
117 params->subject_match = config->subject_match; in eap_tls_cert_params_from_conf()
118 params->altsubject_match = config->altsubject_match; in eap_tls_cert_params_from_conf()
119 params->check_cert_subject = config->check_cert_subject; in eap_tls_cert_params_from_conf()
[all …]
Deap_tls.c35 struct eap_peer_config *config = eap_get_config(sm); in eap_tls_init() local
38 if (!config) in eap_tls_init()
41 cert = &config->cert; in eap_tls_init()
43 cert = &config->machine_cert; in eap_tls_init()
45 cert = &config->phase2_cert; in eap_tls_init()
58 if (eap_peer_tls_ssl_init(sm, &data->ssl, config, EAP_TYPE_TLS)) { in eap_tls_init()
85 struct eap_peer_config *config = eap_get_config(sm); in eap_unauth_tls_init() local
94 if (eap_peer_tls_ssl_init(sm, &data->ssl, config, in eap_unauth_tls_init()
112 struct eap_peer_config *config = eap_get_config(sm); in eap_wfa_unauth_tls_init() local
121 if (eap_peer_tls_ssl_init(sm, &data->ssl, config, in eap_wfa_unauth_tls_init()
[all …]
/hostap-3.7.0/tests/hwsim/auth_serv/
Dupdate.sh27 …$OPENSSL req -config ca-openssl.cnf.tmp -batch -x509 -new -newkey rsa:2048 -nodes -keyout ca-incor…
33 …$OPENSSL req -config ca-openssl.cnf.tmp -batch -x509 -new -newkey rsa:2048 -nodes -keyout ca-key.p…
40 $OPENSSL ca -config ca-openssl.cnf.tmp -gencrl -crldays 2922 -out crl.pem
42 faketime yesterday $OPENSSL ca -config ca-openssl.cnf.tmp -gencrl -crlhours 1 -out crl.pem
57 …$OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout server.key -out s…
59 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server.csr -out server.pem -extensions ext_serv…
68 …$OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout server-no-dnsname…
70 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server-no-dnsname.csr -out server-no-dnsname.pe…
76 …$OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout server-expired.ke…
78 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -in server-expired.csr -out server-expired.pem -ext…
[all …]
Dsha512-generate.sh15 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -x509 -new -newkey rsa:4096 -nodes -keyout sha512…
28 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -newkey rsa:3500 -nodes -keyout sha512-serve…
29 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile sha512-ca.key -cert sha512-ca.pem -create…
40 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -newkey rsa:3072 -nodes -keyout sha384-serve…
41 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile sha512-ca.key -cert sha512-ca.pem -create…
52 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -newkey rsa:3400 -nodes -keyout sha512-user.…
53 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile sha512-ca.key -cert sha512-ca.pem -create…
64 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -newkey rsa:2900 -nodes -keyout sha384-user.…
65 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile sha512-ca.key -cert sha512-ca.pem -create…
Dica-generate.sh15 $OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout iCA-server/private…
16 $OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out iCA-server/cacert.pem -days 3652…
30 $OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout iCA-user/private/c…
31 $OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out iCA-user/cacert.pem -days 3652 -…
44 $OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout iCA-server/server.…
45 $OPENSSL ca -config openssl.cnf.tmp -batch -keyfile iCA-server/private/cakey.pem -cert iCA-server/c…
58 $OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout iCA-server/server-…
59 $OPENSSL ca -config openssl.cnf.tmp -batch -keyfile iCA-server/private/cakey.pem -cert iCA-server/c…
60 $OPENSSL ca -config openssl.cnf.tmp -revoke iCA-server/server-revoked.pem -keyfile iCA-server/priva…
73 $OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout iCA-user/user.key …
[all …]
Dec2-generate.sh17 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -x509 -new -key ec2-ca.key -out ec2-ca.pem -outfo…
31 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -nodes -key ec2-server.key -out ec2-server.r…
32 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile ec2-ca.key -cert ec2-ca.pem -create_seria…
44 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -nodes -key ec2-user.key -out ec2-user.req -…
45 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile ec2-ca.key -cert ec2-ca.pem -create_seria…
57 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -nodes -key ec2-user-p256.key -out ec2-user-…
58 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile ec2-ca.key -cert ec2-ca.pem -create_seria…
Drsa3072-generate.sh26 …$OPENSSL req -config rsa3072-ca-openssl.cnf.tmp -batch -x509 -new -newkey rsa:3072 -nodes -keyout …
42 …$OPENSSL req -config rsa3072-ca-openssl.cnf.tmp -batch -new -newkey rsa:3072 -nodes -keyout rsa307…
44 $OPENSSL ca -config rsa3072-ca-openssl.cnf.tmp -batch -keyfile rsa3072-ca.key -cert rsa3072-ca.pem …
57 …$OPENSSL req -config rsa3072-ca-openssl.cnf.tmp -batch -new -newkey rsa:3072 -nodes -keyout rsa307…
59 $OPENSSL ca -config rsa3072-ca-openssl.cnf.tmp -batch -keyfile rsa3072-ca.key -cert rsa3072-ca.pem …
72 …$OPENSSL req -config rsa3072-ca-openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -keyout rsa307…
74 $OPENSSL ca -config rsa3072-ca-openssl.cnf.tmp -batch -keyfile rsa3072-ca.key -cert rsa3072-ca.pem …
Dec-generate.sh17 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -x509 -new -key ec-ca.key -out ec-ca.pem -outform…
31 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -nodes -key ec-server.key -out ec-server.req…
32 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile ec-ca.key -cert ec-ca.pem -create_serial …
44 $OPENSSL req -config ec-ca-openssl.cnf.tmp -batch -new -nodes -key ec-user.key -out ec-user.req -ou…
45 $OPENSSL ca -config ec-ca-openssl.cnf.tmp -batch -keyfile ec-ca.key -cert ec-ca.pem -create_serial …
/hostap-3.7.0/hs20/server/ca/
Dsetup.sh105 …$OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:4096 -keyout rootCA/private/cakey.pem…
107 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out rootCA/cacert.pem -days 10957 -…
126 …$OPENSSL req -config openssl.cnf.tmp -batch -new -newkey rsa:2048 -keyout demoCA/private/cakey.pem…
128 …$OPENSSL ca -config openssl.cnf.tmp -md sha256 -create_serial -out demoCA/cacert.pem -days 3652 -b…
143 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out ocsp.csr -keyout…
144 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -keyfile demoCA/private/cakey.pem -passi…
151 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out server-revoked.c…
152 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-revoked.csr -out server-revok…
161 $OPENSSL req -config $PWD/openssl.cnf.tmp -batch -new -newkey rsa:2048 -nodes -out server-client.cs…
162 $OPENSSL ca -config $PWD/openssl.cnf.tmp -batch -md sha256 -in server-client.csr -out server-client…
[all …]
/hostap-3.7.0/tests/fuzzing/eap-mschapv2-peer/
Deap-mschapv2-peer.c69 struct eap_peer_config *config = eap_get_config(sm); in eap_get_config_password() local
71 *len = config->password_len; in eap_get_config_password()
72 return config->password; in eap_get_config_password()
78 struct eap_peer_config *config = eap_get_config(sm); in eap_get_config_password2() local
80 *len = config->password_len; in eap_get_config_password2()
82 *hash = !!(config->flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH); in eap_get_config_password2()
83 return config->password; in eap_get_config_password2()
/hostap-3.7.0/hs20/client/
DMakefile11 TEST_WK := $(shell pkg-config --silence-errors --cflags webkitgtk-3.0)
14 GTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkit2gtk-4.0)
15 GTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkit2gtk-4.0)
18 GTKCFLAGS := $(shell pkg-config --cflags gtk+-3.0 webkitgtk-3.0)
19 GTKLIBS := $(shell pkg-config --libs gtk+-3.0 webkitgtk-3.0)
60 CFLAGS += $(shell xml2-config --cflags)
61 LIBS += $(shell xml2-config --libs)
/hostap-3.7.0/tests/fuzzing/dpp-uri/
Ddpp-uri.c19 struct dpp_global_config config; in LLVMFuzzerTestOneInput() local
35 os_memset(&config, 0, sizeof(config)); in LLVMFuzzerTestOneInput()
36 dpp = dpp_global_init(&config); in LLVMFuzzerTestOneInput()

12345