Home
last modified time | relevance | path

Searched refs:scard (Results 1 – 10 of 10) sorted by relevance

/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.c252 static int _scard_select_file(struct scard_data *scard, unsigned short file_id,
256 static int scard_select_file(struct scard_data *scard, unsigned short file_id,
258 static int scard_verify_pin(struct scard_data *scard, const char *pin);
259 static int scard_get_record_len(struct scard_data *scard,
261 static int scard_read_record(struct scard_data *scard,
376 static int scard_pin_needed(struct scard_data *scard, in scard_pin_needed() argument
379 if (scard->sim_type == SCARD_GSM_SIM) { in scard_pin_needed()
386 if (scard->sim_type == SCARD_USIM) { in scard_pin_needed()
401 static int scard_get_aid(struct scard_data *scard, unsigned char *aid, in scard_get_aid() argument
420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid()
[all …]
Dpcsc_funcs.h14 void scard_deinit(struct scard_data *scard);
16 int scard_set_pin(struct scard_data *scard, const char *pin);
17 int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len);
18 int scard_get_mnc_len(struct scard_data *scard);
19 int scard_gsm_auth(struct scard_data *scard, const unsigned char *_rand,
21 int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
25 int scard_get_pin_retry_counter(struct scard_data *scard);
26 int scard_supports_umts(struct scard_data *scard);
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.c593 ctx->scard_ctx = wpa_s->scard; in test_eapol()
645 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol()
677 scard_deinit(wpa_s->scard); in test_eapol_clean()
1075 struct scard_data *scard; in scard_test() local
1104 scard = scard_init(e->pcsc_reader); in scard_test()
1105 if (scard == NULL) in scard_test()
1107 if (scard_set_pin(scard, e->pcsc_pin)) { in scard_test()
1109 scard_deinit(scard); in scard_test()
1114 if (scard_get_imsi(scard, imsi, &len)) in scard_test()
1120 scard_get_mnc_len(scard)); in scard_test()
[all …]
Dinterworking.c1023 if (cred->pcsc && wpa_s->scard && scard_supports_umts(wpa_s->scard)) in interworking_connect_3gpp()
1978 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) { in interworking_pcsc_read_imsi()
1979 scard_deinit(wpa_s->scard); in interworking_pcsc_read_imsi()
1980 wpa_s->scard = NULL; in interworking_pcsc_read_imsi()
1985 wpa_s->mnc_len = scard_get_mnc_len(wpa_s->scard); in interworking_pcsc_read_imsi()
2039 if (cred->pcsc && wpa_s->scard) { in interworking_credentials_available_3gpp()
2308 else if (cred->pcsc && wpa_s->scard) { in interworking_home_sp_cred()
Dpreauth_test.c196 scard_deinit(wpa_s->scard); in test_eapol_clean()
Dtodo.txt5 authentication has been completed (cache scard data based on serial#(?)
Dwpa_supplicant.c533 scard_deinit(wpa_s->scard); in wpa_supplicant_cleanup()
534 wpa_s->scard = NULL; in wpa_supplicant_cleanup()
6171 wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader);
6172 if (!wpa_s->scard)
6176 scard_set_pin(wpa_s->scard, wpa_s->conf->pcsc_pin) < 0) {
6177 scard_deinit(wpa_s->scard);
6178 wpa_s->scard = NULL;
6184 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) {
6185 scard_deinit(wpa_s->scard);
6186 wpa_s->scard = NULL;
[all …]
Devents.c503 wpa_s->scard != NULL || wpa_s->conf->external_sim) in wpa_supplicant_scard_init()
541 wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader); in wpa_supplicant_scard_init()
542 if (wpa_s->scard == NULL) { in wpa_supplicant_scard_init()
547 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
548 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init()
Dwpa_supplicant_i.h805 struct scard_data *scard; member
/external/wpa_supplicant_8/wpa_supplicant/doc/docbook/
Deapol_test.sgml35 <command>eapol_test scard</command>