Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 124) sorted by relevance

12345

/hostap-latest/doc/
Ddbus.doxygen32 <p>Registers a wireless interface in wpa_supplicant.</p>
68 <p>Deregisters a wireless interface from wpa_supplicant.</p>
85 …<p>Returns a D-Bus path to an object related to an interface which wpa_supplicant already controls…
107 <p>Notify wpa_supplicant of an externally triggered disconnection, e.g., due to system suspend.</p>
116 <p>Global wpa_supplicant debugging level. Possible values are
118 "info" (informative), "warning" (warnings), and "error" (errors).</p>
123 <p>Global wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
128 <p>Global wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
133 <p>An array with paths to D-Bus objects representing controlled interfaces each.</p>
138 <p>An array with supported EAP methods names.</p>
[all …]
/hostap-latest/wlantest/
Dwlantest.c34 static void passphrase_deinit(struct wlantest_passphrase *p) in passphrase_deinit() argument
36 dl_list_del(&p->list); in passphrase_deinit()
37 os_free(p); in passphrase_deinit()
89 struct wlantest_passphrase *p, *pn; in wlantest_deinit() local
101 dl_list_for_each_safe(p, pn, &wt->passphrase, in wlantest_deinit()
103 passphrase_deinit(p); in wlantest_deinit()
127 struct wlantest_passphrase *p; in add_passphrase() local
132 p = os_zalloc(sizeof(*p)); in add_passphrase()
133 if (p == NULL) in add_passphrase()
135 os_memcpy(p->passphrase, passphrase, len); in add_passphrase()
[all …]
Dwired.c92 struct wlantest_pmk *p; in wlantest_add_pmk() local
94 p = os_zalloc(sizeof(*p)); in wlantest_add_pmk()
95 if (p == NULL) in wlantest_add_pmk()
97 os_memcpy(p->pmk, pmk, pmk_len); in wlantest_add_pmk()
98 p->pmk_len = pmk_len; in wlantest_add_pmk()
99 dl_list_add(&wt->pmk, &p->list); in wlantest_add_pmk()
Dbss.c130 struct wlantest_passphrase *p; in bss_add_pmk() local
132 dl_list_for_each(p, &wt->passphrase, struct wlantest_passphrase, list) in bss_add_pmk()
134 if (!is_zero_ether_addr(p->bssid) && in bss_add_pmk()
135 !ether_addr_equal(p->bssid, bss->bssid)) in bss_add_pmk()
137 if (p->ssid_len && in bss_add_pmk()
138 (p->ssid_len != bss->ssid_len || in bss_add_pmk()
139 os_memcmp(p->ssid, bss->ssid, p->ssid_len) != 0)) in bss_add_pmk()
142 if (bss_add_pmk_from_passphrase(bss, p->passphrase) < 0) in bss_add_pmk()
/hostap-latest/src/fst/
Dfst_ctrl_iface.c213 char *p, *q; in session_set() local
217 id = strtoul(session_id, &p, 0); in session_set()
225 if (*p != ' ' || !(q = os_strchr(p + 1, '='))) in session_set()
227 p++; in session_set()
229 if (os_strncasecmp(p, FST_CSS_PNAME_OLD_IFNAME, q - p) == 0) { in session_set()
231 } else if (os_strncasecmp(p, FST_CSS_PNAME_NEW_IFNAME, q - p) == 0) { in session_set()
233 } else if (os_strncasecmp(p, FST_CSS_PNAME_OLD_PEER_ADDR, q - p) == 0) { in session_set()
235 } else if (os_strncasecmp(p, FST_CSS_PNAME_NEW_PEER_ADDR, q - p) == 0) { in session_set()
237 } else if (os_strncasecmp(p, FST_CSS_PNAME_LLT, q - p) == 0) { in session_set()
240 fst_printf(MSG_ERROR, "CTRL: Unknown parameter: %s", p); in session_set()
[all …]
/hostap-latest/src/crypto/
Dcrypto_mbedtls_alt.c1383 int crypto_bignum_legendre(const struct crypto_bignum *a, const struct crypto_bignum *p) in crypto_bignum_legendre() argument
1402 …if (mbedtls_mpi_sub_int(&exp, (const mbedtls_mpi *)p, 1) == 0 && mbedtls_mpi_shift_r(&exp, 1) == 0… in crypto_bignum_legendre()
1403 mbedtls_mpi_exp_mod(&tmp, (const mbedtls_mpi *)a, &exp, (const mbedtls_mpi *)p, NULL) == 0) in crypto_bignum_legendre()
1499 unsigned char *p = buf + 2 + prime_len; in crypto_dh_derive_secret() local
1503 p[0] = 0; /*(2-byte big-endian size of generator)*/ in crypto_dh_derive_secret()
1504 p[1] = 1; in crypto_dh_derive_secret()
1505 p[2] = generator; in crypto_dh_derive_secret()
1506 WPA_PUT_BE16(p + 3, pubkey_len); /*(2-byte big-endian size of pubkey)*/ in crypto_dh_derive_secret()
1507 os_memcpy(p + 5, pubkey, pubkey_len); in crypto_dh_derive_secret()
1512 p = buf; in crypto_dh_derive_secret()
[all …]
Dcrypto_internal-modexp.c62 struct bignum *p, *q, *tmp; in crypto_dh_derive_secret() local
66 p = bignum_init(); in crypto_dh_derive_secret()
69 failed = !p || !q || !tmp || in crypto_dh_derive_secret()
70 bignum_set_unsigned_bin(p, prime, prime_len) < 0 || in crypto_dh_derive_secret()
72 bignum_exptmod(pub, q, p, tmp) < 0 || in crypto_dh_derive_secret()
74 bignum_deinit(p); in crypto_dh_derive_secret()
Dcrypto_gnutls.c24 unsigned char *p; in gnutls_digest_vector() local
34 p = gcry_md_read(hd, algo); in gnutls_digest_vector()
35 if (p) in gnutls_digest_vector()
36 memcpy(mac, p, gcry_md_get_algo_dlen(algo)); in gnutls_digest_vector()
106 unsigned char *p; in gnutls_hmac_vector() local
120 p = gcry_md_read(hd, algo); in gnutls_hmac_vector()
121 if (p) in gnutls_hmac_vector()
122 memcpy(mac, p, gcry_md_get_algo_dlen(algo)); in gnutls_hmac_vector()
332 gcry_mpi_t p = NULL, q = NULL, tmp; in crypto_dh_derive_secret() local
338 gcry_mpi_scan(&p, GCRYMPI_FMT_USG, prime, prime_len, in crypto_dh_derive_secret()
[all …]
Dmd5-internal.c118 unsigned char *p = (unsigned char *) ctx->in + t; in MD5Update() local
122 os_memcpy(p, buf, len); in MD5Update()
125 os_memcpy(p, buf, t); in MD5Update()
153 unsigned char *p; in MD5Final() local
160 p = ctx->in + count; in MD5Final()
161 *p++ = 0x80; in MD5Final()
169 os_memset(p, 0, count); in MD5Final()
177 os_memset(p, 0, count - 8); in MD5Final()
/hostap-latest/tests/
Dtest-aes.c60 char *p; member
238 u8 p[64], c[64], tmp[64]; in test_gcm() local
251 p_len = os_strlen(tc->p) / 2; in test_gcm()
252 if (hexstr2bin(tc->p, p, p_len)) { in test_gcm()
284 if (aes_gcm_ae(k, k_len, iv, iv_len, p, p_len, aad, aad_len, in test_gcm()
322 if (os_memcmp(p, tmp, p_len) != 0) { in test_gcm()
337 u8 bin[2000], k[32], p[1024], c[1024 + 8], result[1024 + 8]; in test_nist_key_wrap_ae() local
407 if (bin_len > sizeof(p)) { in test_nist_key_wrap_ae()
411 os_memcpy(p, bin, bin_len); in test_nist_key_wrap_ae()
434 if (aes_wrap(k, k_len, p_len / 8, p, result)) { in test_nist_key_wrap_ae()
[all …]
/hostap-latest/tests/hwsim/
Dtest_wmediumd.py94 def output_wmediumd_log(p, params, data): argument
102 p = subprocess.Popen(['wmediumd', '-c', fn],
112 line = p.stdout.readline().decode()
114 output_wmediumd_log(p, params, logs)
119 return p
121 def stop_wmediumd(p, params): argument
122 p.terminate()
123 p.wait()
124 stdoutdata, stderrdata = p.communicate()
125 output_wmediumd_log(p, params, stdoutdata.decode())
[all …]
/hostap-latest/src/utils/
Dos_internal.c312 char *p = s; in os_memset() local
314 *p++ = c; in os_memset()
354 const char *p = s; in os_strlen() local
355 while (*p) in os_strlen()
356 p++; in os_strlen()
357 return p - s; in os_strlen()
394 const char *p = s; in os_strrchr() local
395 while (*p) in os_strrchr()
396 p++; in os_strrchr()
397 p--; in os_strrchr()
[all …]
Dos_zephyr.c233 void *p; in os_realloc() local
244 p = os_zalloc(newsize); in os_realloc()
246 if (p) { in os_realloc()
248 memcpy(p, ptr, newsize); in os_realloc()
253 return p; in os_realloc()
258 void *p = k_malloc(size); in os_zalloc() local
260 if (p != NULL) { in os_zalloc()
261 (void)memset(p, 0, size); in os_zalloc()
263 return p; in os_zalloc()
Dplatform.h15 #define get_unaligned_le16(p) WPA_GET_LE16((void *) (p)) argument
16 #define get_unaligned_le32(p) WPA_GET_LE32((void *) (p)) argument
Dedit_readline.c164 char *p = h->line; in edit_deinit() local
165 while (*p == ' ' || *p == '\t') in edit_deinit()
166 p++; in edit_deinit()
167 if (filter_cb && filter_cb(edit_cb_ctx, p)) { in edit_deinit()
/hostap-latest/src/eap_server/
Deap_sim_db.c802 static void eap_sim_db_free_pseudonym(struct eap_sim_pseudonym *p) in eap_sim_db_free_pseudonym() argument
804 os_free(p->permanent); in eap_sim_db_free_pseudonym()
805 os_free(p->pseudonym); in eap_sim_db_free_pseudonym()
806 os_free(p); in eap_sim_db_free_pseudonym()
825 struct eap_sim_pseudonym *p, *prev; in eap_sim_db_deinit() local
839 p = data->pseudonyms; in eap_sim_db_deinit()
840 while (p) { in eap_sim_db_deinit()
841 prev = p; in eap_sim_db_deinit()
842 p = p->next; in eap_sim_db_deinit()
1113 struct eap_sim_pseudonym *p; in eap_sim_db_add_pseudonym() local
[all …]
Dikev2.c215 const struct ikev2_proposal *p; in ikev2_parse_proposal() local
217 if (end - pos < (int) sizeof(*p)) { in ikev2_parse_proposal()
222 p = (const struct ikev2_proposal *) pos; in ikev2_parse_proposal()
223 proposal_len = WPA_GET_BE16(p->proposal_length); in ikev2_parse_proposal()
224 if (proposal_len < (int) sizeof(*p) || proposal_len > end - pos) { in ikev2_parse_proposal()
230 p->proposal_num); in ikev2_parse_proposal()
233 p->type, proposal_len, p->protocol_id); in ikev2_parse_proposal()
235 p->spi_size, p->num_transforms); in ikev2_parse_proposal()
237 if (p->type != 0 && p->type != 2) { in ikev2_parse_proposal()
242 if (p->protocol_id != IKEV2_PROTOCOL_IKE) { in ikev2_parse_proposal()
[all …]
/hostap-latest/src/eap_peer/
Dikev2.c206 const struct ikev2_proposal *p; in ikev2_parse_proposal() local
208 if (end - pos < (int) sizeof(*p)) { in ikev2_parse_proposal()
215 p = (const struct ikev2_proposal *) pos; in ikev2_parse_proposal()
216 proposal_len = WPA_GET_BE16(p->proposal_length); in ikev2_parse_proposal()
217 if (proposal_len < (int) sizeof(*p) || proposal_len > end - pos) { in ikev2_parse_proposal()
223 p->proposal_num); in ikev2_parse_proposal()
226 p->type, proposal_len, p->protocol_id); in ikev2_parse_proposal()
228 p->spi_size, p->num_transforms); in ikev2_parse_proposal()
230 if (p->type != 0 && p->type != 2) { in ikev2_parse_proposal()
235 if (p->protocol_id != IKEV2_PROTOCOL_IKE) { in ikev2_parse_proposal()
[all …]
/hostap-latest/src/ap/
Deth_p_oui.c165 u8 *packet, *p; in eth_p_oui_send() local
174 p = packet; in eth_p_oui_send()
180 p += sizeof(*ethhdr); in eth_p_oui_send()
182 os_memcpy(p, global_oui, sizeof(global_oui)); in eth_p_oui_send()
183 p[sizeof(global_oui)] = ctx->oui_suffix; in eth_p_oui_send()
184 p += sizeof(global_oui) + 1; in eth_p_oui_send()
186 os_memcpy(p, buf, len); in eth_p_oui_send()
Dieee802_11.c4451 u8 *p = buf; in ieee80211_ml_build_assoc_resp() local
4455 WPA_PUT_LE16(p, hostapd_own_capab_info(hapd)); in ieee80211_ml_build_assoc_resp()
4456 p += 2; in ieee80211_ml_build_assoc_resp()
4459 WPA_PUT_LE16(p, link->status); in ieee80211_ml_build_assoc_resp()
4460 p += 2; in ieee80211_ml_build_assoc_resp()
4466 p = hostapd_eid_supp_rates(hapd, p); in ieee80211_ml_build_assoc_resp()
4467 p = hostapd_eid_ext_supp_rates(hapd, p); in ieee80211_ml_build_assoc_resp()
4468 p = hostapd_eid_rm_enabled_capab(hapd, p, buf + buflen - p); in ieee80211_ml_build_assoc_resp()
4469 p = hostapd_eid_ht_capabilities(hapd, p); in ieee80211_ml_build_assoc_resp()
4470 p = hostapd_eid_ht_operation(hapd, p); in ieee80211_ml_build_assoc_resp()
[all …]
/hostap-latest/wpa_supplicant/
Deapol_test.c158 struct extra_radius_attr *p; in add_extra_attrs() local
159 for (p = attrs; p; p = p->next) { in add_extra_attrs()
160 if (add_extra_attr(msg, p) < 0) in add_extra_attrs()
170 struct extra_radius_attr *p; in find_extra_attr() local
171 for (p = attrs; p; p = p->next) { in find_extra_attr()
172 if (p->type == type) in find_extra_attr()
173 return p; in find_extra_attr()
662 struct extra_radius_attr *p, *prev; in test_eapol_clean() local
693 p = e->extra_attrs; in test_eapol_clean()
694 while (p) { in test_eapol_clean()
[all …]
/hostap-latest/tests/hwsim/vm/
Dparallel-vm.py421 p = argparse.ArgumentParser(description='run multiple testing VMs in parallel')
422 p.add_argument('num_servers', metavar='number of VMs', type=int, choices=range(1, 100),
424 p.add_argument('-f', dest='testmodules', metavar='<test module>',
427 p.add_argument('-1', dest='no_retry', action='store_const', const=True, default=False,
429 p.add_argument('--debug', dest='debug', action='store_const', const=True, default=False,
431 p.add_argument('--codecov', dest='codecov', action='store_const', const=True, default=False,
433p.add_argument('--shuffle-tests', dest='shuffle', action='store_const', const=True, default=False,
435 p.add_argument('--short', dest='short', action='store_const', const=True,
438 p.add_argument('--long', dest='long', action='store_const', const=True,
441 p.add_argument('--valgrind', dest='valgrind', action='store_const',
[all …]
/hostap-latest/src/rsn_supp/
Dpreauth.c333 struct rsn_pmksa_cache_entry *p = NULL; in rsn_preauth_candidate_process() local
334 p = pmksa_cache_get(sm->pmksa, candidate->bssid, sm->own_addr, in rsn_preauth_candidate_process()
337 (p == NULL || p->opportunistic)) { in rsn_preauth_candidate_process()
353 if (p) { in rsn_preauth_candidate_process()
354 wpa_sm_add_pmkid(sm, NULL, candidate->bssid, p->pmkid, in rsn_preauth_candidate_process()
355 NULL, p->pmk, p->pmk_len, 0, 0, in rsn_preauth_candidate_process()
356 p->akmp); in rsn_preauth_candidate_process()
/hostap-latest/src/tls/
Drsa.c23 struct bignum *p; /* prime p (factor of n) */ member
160 key->p = bignum_init(); in crypto_rsa_import_private_key()
167 key->p == NULL || key->q == NULL || key->dmp1 == NULL || in crypto_rsa_import_private_key()
211 pos = crypto_rsa_parse_integer(pos, end, key->p); in crypto_rsa_import_private_key()
297 if (bignum_exptmod(tmp, key->dmp1, key->p, a) < 0) in crypto_rsa_exptmod()
306 bignum_mulmod(tmp, key->iqmp, key->p, tmp) < 0) in crypto_rsa_exptmod()
359 bignum_deinit(key->p); in crypto_rsa_free()
/hostap-latest/src/l2_packet/
Dl2_packet_freebsd.c203 u_char *p, *buf; in eth_get()
215 for (p = buf; p < buf + len; p += ifm->ifm_msglen) { in eth_get()
216 ifm = (struct if_msghdr *)p; in eth_get()
229 if (p >= buf + len) { in eth_get()

12345