Home
last modified time | relevance | path

Searched refs:scard (Results 1 – 11 of 11) 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.c596 ctx->scard_ctx = wpa_s->scard; in test_eapol()
648 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in test_eapol()
680 scard_deinit(wpa_s->scard); in test_eapol_clean()
1068 struct scard_data *scard; in scard_test() local
1097 scard = scard_init(e->pcsc_reader); in scard_test()
1098 if (scard == NULL) in scard_test()
1100 if (scard_set_pin(scard, e->pcsc_pin)) { in scard_test()
1102 scard_deinit(scard); in scard_test()
1107 if (scard_get_imsi(scard, imsi, &len)) in scard_test()
1113 scard_get_mnc_len(scard)); in scard_test()
[all …]
Dinterworking.c1012 if (cred->pcsc && wpa_s->scard && scard_supports_umts(wpa_s->scard)) in interworking_connect_3gpp()
1908 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) { in interworking_pcsc_read_imsi()
1909 scard_deinit(wpa_s->scard); in interworking_pcsc_read_imsi()
1910 wpa_s->scard = NULL; in interworking_pcsc_read_imsi()
1915 wpa_s->mnc_len = scard_get_mnc_len(wpa_s->scard); in interworking_pcsc_read_imsi()
1969 if (cred->pcsc && wpa_s->scard) { in interworking_credentials_available_3gpp()
2238 else if (cred->pcsc && wpa_s->scard) { in interworking_home_sp_cred()
Dpreauth_test.c186 scard_deinit(wpa_s->scard); in test_eapol_clean()
Dwpa_supplicant.c481 scard_deinit(wpa_s->scard); in wpa_supplicant_cleanup()
482 wpa_s->scard = NULL; in wpa_supplicant_cleanup()
4834 wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader); in pcsc_reader_init()
4835 if (!wpa_s->scard) in pcsc_reader_init()
4839 scard_set_pin(wpa_s->scard, wpa_s->conf->pcsc_pin) < 0) { in pcsc_reader_init()
4840 scard_deinit(wpa_s->scard); in pcsc_reader_init()
4841 wpa_s->scard = NULL; in pcsc_reader_init()
4847 if (scard_get_imsi(wpa_s->scard, wpa_s->imsi, &len)) { in pcsc_reader_init()
4848 scard_deinit(wpa_s->scard); in pcsc_reader_init()
4849 wpa_s->scard = NULL; in pcsc_reader_init()
[all …]
Dtodo.txt5 authentication has been completed (cache scard data based on serial#(?)
Devents.c425 wpa_s->scard != NULL || wpa_s->conf->external_sim) in wpa_supplicant_scard_init()
463 wpa_s->scard = scard_init(wpa_s->conf->pcsc_reader); in wpa_supplicant_scard_init()
464 if (wpa_s->scard == NULL) { in wpa_supplicant_scard_init()
469 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
470 eapol_sm_register_scard_ctx(wpa_s->eapol, wpa_s->scard); in wpa_supplicant_scard_init()
Dwpa_supplicant_i.h617 struct scard_data *scard; member
/external/openssh/contrib/redhat/
Dopenssh.spec21 %define scard 0
56 %{?smartcard:%define scard 1}
199 %if %{scard}
273 %if ! %{scard}
350 %if %{scard}
/external/wpa_supplicant_8/wpa_supplicant/doc/docbook/
Deapol_test.sgml31 <command>eapol_test scard</command>