diff options
author | Martin Willi <martin@strongswan.org> | 2008-06-10 07:14:34 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-06-10 07:14:34 +0000 |
commit | 208b3baf10621e5e7e2569913458eb2ee958167d (patch) | |
tree | 9de1e513fc1d0854ee958c22a901c3b0b1738b40 | |
parent | 5dcda9e25b83d43cf9f164d10c7176bd452dba6d (diff) | |
download | strongswan-208b3baf10621e5e7e2569913458eb2ee958167d.tar.bz2 strongswan-208b3baf10621e5e7e2569913458eb2ee958167d.tar.xz |
fixed "enabled" value key word
more debugging for settings parser
-rw-r--r-- | src/libstrongswan/settings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/settings.c b/src/libstrongswan/settings.c index 025a9806d..7c87dccd8 100644 --- a/src/libstrongswan/settings.c +++ b/src/libstrongswan/settings.c @@ -164,7 +164,7 @@ static bool get_bool(private_settings_t *this, char *key, bool def) if (value) { if (strcasecmp(value, "true") == 0 || - strcasecmp(value, "enables") == 0 || + strcasecmp(value, "enabled") == 0 || strcasecmp(value, "yes") == 0 || strcasecmp(value, "1") == 0) { @@ -318,6 +318,7 @@ static section_t* parse_section(char **text, char *name) continue; } } + DBG1("matching '}' not found near %s", *text); break; case '=': if (parse(text, "\t ", "\n", NULL, &value)) @@ -328,6 +329,7 @@ static section_t* parse_section(char **text, char *name) section->kv->insert_last(section->kv, kv); continue; } + DBG1("parsing value failed near %s", *text); break; case '#': parse(text, "", "\n", NULL, &value); |