Interworking: Use EAP-AKA if USIM is used
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d7b01abd5e
commit
7f41c92bd6
3 changed files with 11 additions and 0 deletions
|
@ -1419,3 +1419,9 @@ int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
|
|||
wpa_printf(MSG_DEBUG, "SCARD: Unrecognized response");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int scard_supports_umts(struct scard_data *scard)
|
||||
{
|
||||
return scard->sim_type == SCARD_USIM;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
|
|||
unsigned char *res, size_t *res_len,
|
||||
unsigned char *ik, unsigned char *ck, unsigned char *auts);
|
||||
int scard_get_pin_retry_counter(struct scard_data *scard);
|
||||
int scard_supports_umts(struct scard_data *scard);
|
||||
|
||||
#else /* PCSC_FUNCS */
|
||||
|
||||
|
@ -40,6 +41,7 @@ int scard_get_pin_retry_counter(struct scard_data *scard);
|
|||
#define scard_gsm_auth(s, r, s2, k) -1
|
||||
#define scard_umts_auth(s, r, a, r2, rl, i, c, a2) -1
|
||||
#define scard_get_pin_retry_counter(s) -1
|
||||
#define scard_supports_umts(s) 0
|
||||
|
||||
#endif /* PCSC_FUNCS */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue