diff options
author | venaas <venaas> | 2008-09-08 08:18:10 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-09-08 08:18:10 +0000 |
commit | 5410779f7b724fc2a4d3d3162fadf732bdfdff77 (patch) | |
tree | c1734a93ed4a29af2074b2b2debfa797923d3c3f | |
parent | 3cff39c4ad7b0147a838b405844641cc5316e34f (diff) |
configuration of rewriteOut, but so far does nothing
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@366 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index ed1908c..4772442 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3018,6 +3018,7 @@ int confclient_cb(struct gconffile **cf, void *arg, char *block, char *opt, char "CertificateNameCheck", CONF_BLN, &conf->certnamecheck, "rewrite", CONF_STR, &rewriteinalias, "rewriteIn", CONF_STR, &conf->confrewritein, + "rewriteOut", CONF_STR, &conf->confrewriteout, "rewriteattribute", CONF_STR, &conf->rewriteusername, NULL )) @@ -3050,6 +3051,8 @@ int confclient_cb(struct gconffile **cf, void *arg, char *block, char *opt, char else free(rewriteinalias); conf->rewritein = conf->confrewritein ? getrewrite(conf->confrewritein, NULL) : getrewrite("defaultclient", "default"); + if (conf->confrewriteout) + conf->rewriteout = getrewrite(conf->confrewriteout, NULL); if (conf->rewriteusername) { if (!addrewriteattr(conf)) @@ -3096,6 +3099,8 @@ int compileserverconfig(struct clsrvconf *conf, const char *block) { conf->retrycount = protodefs[conf->type].retrycountdefault; conf->rewritein = conf->confrewritein ? getrewrite(conf->confrewritein, NULL) : getrewrite("defaultserver", "default"); + if (conf->confrewriteout) + conf->rewriteout = getrewrite(conf->confrewriteout, NULL); if (!conf->secret) { if (!conf->pdef->secretdefault) { @@ -3145,6 +3150,7 @@ int confserver_cb(struct gconffile **cf, void *arg, char *block, char *opt, char "MatchCertificateAttribute", CONF_STR, &conf->matchcertattr, "rewrite", CONF_STR, &rewriteinalias, "rewriteIn", CONF_STR, &conf->confrewritein, + "rewriteOut", CONF_STR, &conf->confrewriteout, "StatusServer", CONF_BLN, &conf->statusserver, "RetryInterval", CONF_LINT, &retryinterval, "RetryCount", CONF_LINT, &retrycount, |