diff options
author | Jouni Malinen <j@w1.fi> | 2014-01-08 08:22:51 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-01-08 08:25:58 (GMT) |
commit | 7185e16a91b600f4d9976118af6844e8cf8526f5 (patch) | |
tree | ab268be713265a043c91197ccaa2a00a6057e8d7 /src/eap_peer/eap_fast.c | |
parent | c075f040a196751e241030a9e6e458f6c6bc708d (diff) | |
download | hostap-7185e16a91b600f4d9976118af6844e8cf8526f5.zip hostap-7185e16a91b600f4d9976118af6844e8cf8526f5.tar.gz hostap-7185e16a91b600f4d9976118af6844e8cf8526f5.tar.bz2 |
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>
Diffstat (limited to 'src/eap_peer/eap_fast.c')
-rw-r--r-- | src/eap_peer/eap_fast.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eap_peer/eap_fast.c b/src/eap_peer/eap_fast.c index 3b8d803..b3cbec6 100644 --- a/src/eap_peer/eap_fast.c +++ b/src/eap_peer/eap_fast.c @@ -196,14 +196,22 @@ static void * eap_fast_init(struct eap_sm *sm) "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 && 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); return NULL; } if (!data->use_pac_binary_format && 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); return NULL; } |