Home
last modified time | relevance | path

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

12345

/hostap-3.6.0/doc/
Ddbus.doxygen32 <p>Registers a wireless interface in wpa_supplicant.</p>
65 <p>Deregisters a wireless interface from wpa_supplicant.</p>
82 …<p>Returns a D-Bus path to an object related to an interface which wpa_supplicant already controls…
104 <p>Notify wpa_supplicant of an externally triggered disconnection, e.g., due to system suspend.</p>
113 <p>Global wpa_supplicant debugging level. Possible values are
115 "info" (informative), "warning" (warnings), and "error" (errors).</p>
120 <p>Global wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
125 <p>Global wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
130 <p>An array with paths to D-Bus objects representing controlled interfaces each.</p>
135 <p>An array with supported EAP methods names.</p>
[all …]
/hostap-3.6.0/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 …]
Dbss.c114 struct wlantest_passphrase *p; in bss_add_pmk() local
116 dl_list_for_each(p, &wt->passphrase, struct wlantest_passphrase, list) in bss_add_pmk()
118 if (!is_zero_ether_addr(p->bssid) && in bss_add_pmk()
119 os_memcmp(p->bssid, bss->bssid, ETH_ALEN) != 0) in bss_add_pmk()
121 if (p->ssid_len && in bss_add_pmk()
122 (p->ssid_len != bss->ssid_len || in bss_add_pmk()
123 os_memcmp(p->ssid, bss->ssid, p->ssid_len) != 0)) in bss_add_pmk()
126 if (bss_add_pmk_from_passphrase(bss, p->passphrase) < 0) in bss_add_pmk()
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()
/hostap-3.6.0/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-3.6.0/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-3.6.0/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-3.6.0/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 …]
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-3.6.0/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-3.6.0/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-3.6.0/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()
/hostap-3.6.0/src/crypto/
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 …]
Dcrypto_openssl.c625 BIGNUM *pub, *p; in crypto_dh_derive_secret() local
629 p = BN_bin2bn(prime, prime_len, NULL); in crypto_dh_derive_secret()
630 if (!pub || !p || BN_is_zero(pub) || BN_is_one(pub) || in crypto_dh_derive_secret()
631 BN_cmp(pub, p) >= 0) in crypto_dh_derive_secret()
644 !BN_mod_exp(tmp, pub, q, p, ctx) || in crypto_dh_derive_secret()
657 BN_clear_free(p); in crypto_dh_derive_secret()
841 dh->p = get_group5_prime(); in dh5_init()
842 if (dh->p == NULL) in dh5_init()
877 BIGNUM *p, *g, *q; in dh5_init()
889 p = get_group5_prime(); in dh5_init()
[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()
Dcrypto.h713 const struct crypto_bignum *p);
813 void crypto_ec_point_deinit(struct crypto_ec_point *p, int clear);
822 int crypto_ec_point_x(struct crypto_ec *e, const struct crypto_ec_point *p,
873 int crypto_ec_point_mul(struct crypto_ec *e, const struct crypto_ec_point *p,
883 int crypto_ec_point_invert(struct crypto_ec *e, struct crypto_ec_point *p);
903 const struct crypto_ec_point *p);
912 const struct crypto_ec_point *p);
932 const struct crypto_ec_point *p,
Dcrypto_wolfssl.c1270 const struct crypto_bignum *p) in crypto_bignum_legendre() argument
1283 ret = mp_sub_d((mp_int *) p, 1, &t); in crypto_bignum_legendre()
1287 ret = mp_exptmod((mp_int *) a, &t, (mp_int *) p, &t); in crypto_bignum_legendre()
1452 void crypto_ec_point_deinit(struct crypto_ec_point *p, int clear) in crypto_ec_point_deinit() argument
1454 ecc_point *point = (ecc_point *) p; in crypto_ec_point_deinit()
1456 if (!p) in crypto_ec_point_deinit()
1468 int crypto_ec_point_x(struct crypto_ec *e, const struct crypto_ec_point *p, in crypto_ec_point_x() argument
1471 return mp_copy(((ecc_point *) p)->x, (mp_int *) x) == MP_OKAY ? 0 : -1; in crypto_ec_point_x()
1478 ecc_point *p = (ecc_point *) point; in crypto_ec_point_to_bin() local
1483 if (!mp_isone(p->z)) { in crypto_ec_point_to_bin()
[all …]
/hostap-3.6.0/wpa_supplicant/
Deapol_test.c157 struct extra_radius_attr *p; in add_extra_attrs() local
158 for (p = attrs; p; p = p->next) { in add_extra_attrs()
159 if (add_extra_attr(msg, p) < 0) in add_extra_attrs()
169 struct extra_radius_attr *p; in find_extra_attr() local
170 for (p = attrs; p; p = p->next) { in find_extra_attr()
171 if (p->type == type) in find_extra_attr()
172 return p; in find_extra_attr()
658 struct extra_radius_attr *p, *prev; in test_eapol_clean() local
685 p = e->extra_attrs; in test_eapol_clean()
686 while (p) { in test_eapol_clean()
[all …]
/hostap-3.6.0/tests/hwsim/vm/
Dparallel-vm.py387 p = argparse.ArgumentParser(description='run multiple testing VMs in parallel')
388 p.add_argument('num_servers', metavar='number of VMs', type=int, choices=range(1, 100),
390 p.add_argument('-f', dest='testmodules', metavar='<test module>',
393 p.add_argument('-1', dest='no_retry', action='store_const', const=True, default=False,
395 p.add_argument('--debug', dest='debug', action='store_const', const=True, default=False,
397 p.add_argument('--codecov', dest='codecov', action='store_const', const=True, default=False,
399p.add_argument('--shuffle-tests', dest='shuffle', action='store_const', const=True, default=False,
401 p.add_argument('--short', dest='short', action='store_const', const=True,
404 p.add_argument('--long', dest='long', action='store_const', const=True,
407 p.add_argument('--valgrind', dest='valgrind', action='store_const',
[all …]
/hostap-3.6.0/src/rsn_supp/
Dpreauth.c331 struct rsn_pmksa_cache_entry *p = NULL; in rsn_preauth_candidate_process() local
332 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL, 0); in rsn_preauth_candidate_process()
334 (p == NULL || p->opportunistic)) { in rsn_preauth_candidate_process()
350 if (p) { in rsn_preauth_candidate_process()
351 wpa_sm_add_pmkid(sm, NULL, candidate->bssid, p->pmkid, in rsn_preauth_candidate_process()
352 NULL, p->pmk, p->pmk_len, 0, 0, in rsn_preauth_candidate_process()
353 p->akmp); in rsn_preauth_candidate_process()
/hostap-3.6.0/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-3.6.0/src/l2_packet/
Dl2_packet_freebsd.c192 u_char *p, *buf; in eth_get()
204 for (p = buf; p < buf + len; p += ifm->ifm_msglen) { in eth_get()
205 ifm = (struct if_msghdr *)p; in eth_get()
218 if (p >= buf + len) { in eth_get()

12345