diff options
author | Jouni Malinen <j@w1.fi> | 2014-05-16 19:37:54 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2014-05-17 17:05:55 (GMT) |
commit | 4075e4e86229f68015c73917c6f21fa9906dae58 (patch) | |
tree | f711710ffbcbdfca3dd67f3d9f817629a9f9b748 /src/eap_peer/tncc.c | |
parent | ae14a2e29feb1d6af3e430134127ed179feebd81 (diff) | |
download | hostap-4075e4e86229f68015c73917c6f21fa9906dae58.zip hostap-4075e4e86229f68015c73917c6f21fa9906dae58.tar.gz hostap-4075e4e86229f68015c73917c6f21fa9906dae58.tar.bz2 |
TNC: Allow tnc_config file path to be replaced
This is for enabling easier testing of TNCS/TNCC functionality as part
of the test scripts without having to use the fixed /etc/tnc_config
location that could be used by the main system and would require changes
within /etc.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_peer/tncc.c')
-rw-r--r-- | src/eap_peer/tncc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c index a3ec395..3fb3f16 100644 --- a/src/eap_peer/tncc.c +++ b/src/eap_peer/tncc.c @@ -25,7 +25,9 @@ #endif /* UNICODE */ +#ifndef TNC_CONFIG_FILE #define TNC_CONFIG_FILE "/etc/tnc_config" +#endif /* TNC_CONFIG_FILE */ #define TNC_WINREG_PATH TEXT("SOFTWARE\\Trusted Computing Group\\TNC\\IMCs") #define IF_TNCCS_START \ "<?xml version=\"1.0\"?>\n" \ |