-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* util.c: Fix while loop initialisation bug
* conf.h: Forgot to change the value of NUM_EXT_INTERFACE_DETECT_RETRY to actually make it wait forever. * Remove hardcoded authserver paths. Can now be defined in the config file (auth server section). * Centralise browser redirect code to simplify code * Add manual logout URL, based in part on work by David Bird * Release 1.1.3 final
- Loading branch information
Showing
15 changed files
with
264 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# $Id$ | ||
2007-06-27 Benoit Gr�goire <[email protected]> | ||
* util.c: Fix while loop initialisation bug | ||
* conf.h: Forgot to change the value of NUM_EXT_INTERFACE_DETECT_RETRY to actually make it wait forever. | ||
* Remove hardcoded authserver paths. Can now be defined in the config file (auth server section). | ||
* Centralise browser redirect code to simplify code | ||
* Add manual logout URL, based in part on work by David Bird | ||
* Release 1.1.3 final | ||
|
||
2007-06-24 Benoit Gr�goire <[email protected]> | ||
* Close #321: Make the Gateway retry forever if it cannot find it's interface. You never know when someone may finally replug the network cable or something... | ||
* Close #332: Apply patch from Laurent Marchal. biguphpc<AT>gmail<DOT>com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
/** @file conf.c | ||
@brief Config file parsing | ||
@author Copyright (C) 2004 Philippe April <[email protected]> | ||
@author Copyright (C) 2007 Benoit Grégoire, Technologies Coeus inc. | ||
*/ | ||
|
||
#define _GNU_SOURCE | ||
|
@@ -76,6 +77,11 @@ typedef enum { | |
oAuthServSSLPort, | ||
oAuthServHTTPPort, | ||
oAuthServPath, | ||
oAuthServLoginScriptPathFragment, | ||
oAuthServPortalScriptPathFragment, | ||
oAuthServMsgScriptPathFragment, | ||
oAuthServPingScriptPathFragment, | ||
oAuthServAuthScriptPathFragment, | ||
oHTTPDMaxConn, | ||
oHTTPDName, | ||
oClientTimeout, | ||
|
@@ -113,6 +119,11 @@ static const struct { | |
{ "sslport", oAuthServSSLPort }, | ||
{ "httpport", oAuthServHTTPPort }, | ||
{ "path", oAuthServPath }, | ||
{ "loginscriptpathfragment", oAuthServLoginScriptPathFragment }, | ||
{ "portalscriptpathfragment", oAuthServPortalScriptPathFragment }, | ||
{ "msgscriptpathfragment", oAuthServMsgScriptPathFragment }, | ||
{ "pingscriptpathfragment", oAuthServPingScriptPathFragment }, | ||
{ "authscriptpathfragment", oAuthServAuthScriptPathFragment }, | ||
{ "firewallruleset", oFirewallRuleSet }, | ||
{ "firewallrule", oFirewallRule }, | ||
{ "trustedmaclist", oTrustedMACList }, | ||
|
@@ -190,6 +201,11 @@ parse_auth_server(FILE *file, char *filename, int *linenum) | |
{ | ||
char *host = NULL, | ||
*path = NULL, | ||
*loginscriptpathfragment = NULL, | ||
*portalscriptpathfragment = NULL, | ||
*msgscriptpathfragment = NULL, | ||
*pingscriptpathfragment = NULL, | ||
*authscriptpathfragment = NULL, | ||
line[MAX_BUF], | ||
*p1, | ||
*p2; | ||
|
@@ -202,6 +218,11 @@ parse_auth_server(FILE *file, char *filename, int *linenum) | |
|
||
/* Defaults */ | ||
path = safe_strdup(DEFAULT_AUTHSERVPATH); | ||
loginscriptpathfragment = safe_strdup(DEFAULT_AUTHSERVLOGINPATHFRAGMENT); | ||
portalscriptpathfragment = safe_strdup(DEFAULT_AUTHSERVPORTALPATHFRAGMENT); | ||
msgscriptpathfragment = safe_strdup(DEFAULT_AUTHSERVMSGPATHFRAGMENT); | ||
pingscriptpathfragment = safe_strdup(DEFAULT_AUTHSERVPINGPATHFRAGMENT); | ||
authscriptpathfragment = safe_strdup(DEFAULT_AUTHSERVAUTHPATHFRAGMENT); | ||
http_port = DEFAULT_AUTHSERVPORT; | ||
ssl_port = DEFAULT_AUTHSERVSSLPORT; | ||
ssl_available = DEFAULT_AUTHSERVSSLAVAILABLE; | ||
|
@@ -251,6 +272,26 @@ parse_auth_server(FILE *file, char *filename, int *linenum) | |
free(path); | ||
path = safe_strdup(p2); | ||
break; | ||
case oAuthServLoginScriptPathFragment: | ||
free(loginscriptpathfragment); | ||
loginscriptpathfragment = safe_strdup(p2); | ||
break; | ||
case oAuthServPortalScriptPathFragment: | ||
free(portalscriptpathfragment); | ||
portalscriptpathfragment = safe_strdup(p2); | ||
break; | ||
case oAuthServMsgScriptPathFragment: | ||
free(msgscriptpathfragment); | ||
msgscriptpathfragment = safe_strdup(p2); | ||
break; | ||
case oAuthServPingScriptPathFragment: | ||
free(pingscriptpathfragment); | ||
pingscriptpathfragment = safe_strdup(p2); | ||
break; | ||
case oAuthServAuthScriptPathFragment: | ||
free(authscriptpathfragment); | ||
authscriptpathfragment = safe_strdup(p2); | ||
break; | ||
case oAuthServSSLPort: | ||
ssl_port = atoi(p2); | ||
break; | ||
|
@@ -294,6 +335,11 @@ parse_auth_server(FILE *file, char *filename, int *linenum) | |
new->authserv_hostname = host; | ||
new->authserv_use_ssl = ssl_available; | ||
new->authserv_path = path; | ||
new->authserv_login_script_path_fragment = loginscriptpathfragment; | ||
new->authserv_portal_script_path_fragment = portalscriptpathfragment; | ||
new->authserv_msg_script_path_fragment = msgscriptpathfragment; | ||
new->authserv_ping_script_path_fragment = pingscriptpathfragment; | ||
new->authserv_auth_script_path_fragment = authscriptpathfragment; | ||
new->authserv_http_port = http_port; | ||
new->authserv_ssl_port = ssl_port; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.