aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-05-16 19:37:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-17 17:05:55 (GMT)
commit4075e4e86229f68015c73917c6f21fa9906dae58 (patch)
treef711710ffbcbdfca3dd67f3d9f817629a9f9b748 /src/eap_server
parentae14a2e29feb1d6af3e430134127ed179feebd81 (diff)
downloadhostap-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_server')
-rw-r--r--src/eap_server/tncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eap_server/tncs.c b/src/eap_server/tncs.c
index e429f1e..c6c71c5 100644
--- a/src/eap_server/tncs.c
+++ b/src/eap_server/tncs.c
@@ -19,7 +19,9 @@
/* TODO: TNCS must be thread-safe; review the code and add locking etc. if
* needed.. */
+#ifndef TNC_CONFIG_FILE
#define TNC_CONFIG_FILE "/etc/tnc_config"
+#endif /* TNC_CONFIG_FILE */
#define IF_TNCCS_START \
"<?xml version=\"1.0\"?>\n" \
"<TNCCS-Batch BatchId=\"%d\" Recipient=\"TNCS\" " \