16 unsigned char *sres,
unsigned char *kc);
18 const unsigned char *autn,
19 unsigned char *res,
size_t *res_len,
20 unsigned char *ik,
unsigned char *ck,
unsigned char *auts);
21 int scard_get_pin_retry_counter(
struct scard_data *scard);
22 int scard_supports_umts(
struct scard_data *scard);
26 #define scard_init(r) NULL
27 #define scard_deinit(s) do { } while (0)
28 #define scard_set_pin(s, p) -1
29 #define scard_get_imsi(s, i, l) -1
30 #define scard_get_mnc_len(s) -1
31 #define scard_gsm_auth(s, r, s2, k) -1
32 #define scard_umts_auth(s, r, a, r2, rl, i, c, a2) -1
33 #define scard_get_pin_retry_counter(s) -1
34 #define scard_supports_umts(s) 0
int scard_get_mnc_len(struct scard_data *scard)
Read length of MNC in the IMSI from SIM/USIM card.
Definition: pcsc_funcs.c:1160
int scard_gsm_auth(struct scard_data *scard, const unsigned char *_rand, unsigned char *sres, unsigned char *kc)
Run GSM authentication command on SIM card.
Definition: pcsc_funcs.c:1220
int scard_get_imsi(struct scard_data *scard, char *imsi, size_t *len)
Read IMSI from SIM/USIM card.
Definition: pcsc_funcs.c:1086
struct scard_data * scard_init(const char *reader)
Initialize SIM/USIM connection using PC/SC.
Definition: pcsc_funcs.c:500
void scard_deinit(struct scard_data *scard)
Deinitialize SIM/USIM connection.
Definition: pcsc_funcs.c:730
Definition: pcsc_funcs.c:106
int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand, const unsigned char *autn, unsigned char *res, size_t *res_len, unsigned char *ik, unsigned char *ck, unsigned char *auts)
Run UMTS authentication command on USIM card.
Definition: pcsc_funcs.c:1319
int scard_set_pin(struct scard_data *scard, const char *pin)
Set PIN (CHV1/PIN1) code for accessing SIM/USIM commands.
Definition: pcsc_funcs.c:701