EAP-FAST peer: Make debug clearer on missing pac_file configuration
EAP-FAST requires pac_file to be configured, so make it clearer from the debug output if missing configuration parameter was the reason for EAP-FAST initialization failing. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c075f040a1
commit
7185e16a91
1 changed files with 8 additions and 0 deletions
|
@ -196,14 +196,22 @@ static void * eap_fast_init(struct eap_sm *sm)
|
||||||
"workarounds");
|
"workarounds");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!config->pac_file) {
|
||||||
|
wpa_printf(MSG_INFO, "EAP-FAST: No PAC file configured");
|
||||||
|
eap_fast_deinit(sm, data);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (data->use_pac_binary_format &&
|
if (data->use_pac_binary_format &&
|
||||||
eap_fast_load_pac_bin(sm, &data->pac, config->pac_file) < 0) {
|
eap_fast_load_pac_bin(sm, &data->pac, config->pac_file) < 0) {
|
||||||
|
wpa_printf(MSG_INFO, "EAP-FAST: Failed to load PAC file");
|
||||||
eap_fast_deinit(sm, data);
|
eap_fast_deinit(sm, data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data->use_pac_binary_format &&
|
if (!data->use_pac_binary_format &&
|
||||||
eap_fast_load_pac(sm, &data->pac, config->pac_file) < 0) {
|
eap_fast_load_pac(sm, &data->pac, config->pac_file) < 0) {
|
||||||
|
wpa_printf(MSG_INFO, "EAP-FAST: Failed to load PAC file");
|
||||||
eap_fast_deinit(sm, data);
|
eap_fast_deinit(sm, data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue