Fix wpa_supplicant build with CONFIG_PCSC=y
This code block with dependency on PCSC_FUNCS was missed when conf->pin
was moved to conf->cert.pin. Fix this to get rid of compilation issues
with CONFIG_PCSC=y builds.
Fixes: b99c4cadb7
("EAP peer: Move certificate configuration params into shared struct")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
11bbb7ecb8
commit
3f2641e7ad
1 changed files with 3 additions and 3 deletions
|
@ -1614,13 +1614,13 @@ static int eap_sm_imsi_identity(struct eap_sm *sm,
|
|||
static int eap_sm_set_scard_pin(struct eap_sm *sm,
|
||||
struct eap_peer_config *conf)
|
||||
{
|
||||
if (scard_set_pin(sm->scard_ctx, conf->pin)) {
|
||||
if (scard_set_pin(sm->scard_ctx, conf->cert.pin)) {
|
||||
/*
|
||||
* Make sure the same PIN is not tried again in order to avoid
|
||||
* blocking SIM.
|
||||
*/
|
||||
os_free(conf->pin);
|
||||
conf->pin = NULL;
|
||||
os_free(conf->cert.pin);
|
||||
conf->cert.pin = NULL;
|
||||
|
||||
wpa_printf(MSG_WARNING, "PIN validation failed");
|
||||
eap_sm_request_pin(sm);
|
||||
|
|
Loading…
Reference in a new issue