diff options
author | venaas <venaas> | 2008-09-09 07:56:56 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-09-09 07:56:56 +0000 |
commit | b8c08c68bcc4933c7d0bdd0816d21563f3bfc06f (patch) | |
tree | fb6992dfd1d6712d62303794bd85b60ca2d4add1 /radsecproxy.h | |
parent | 496586f75744b32bb94e6a91e16990b29653885d (diff) |
added support for modifying attributes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@370 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r-- | radsecproxy.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/radsecproxy.h b/radsecproxy.h index 8f3bdb6..fcedf04 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -83,8 +83,7 @@ struct clsrvconf { char *secret; regex_t *certcnregex; regex_t *certuriregex; - regex_t *rewriteusernameregex; - char *rewriteusernamereplacement; + struct modattr *rewriteusername; uint8_t statusserver; uint8_t retryinterval; uint8_t retrycount; @@ -141,10 +140,17 @@ struct attribute { uint8_t *v; }; +struct modattr { + uint8_t t; + char *replacement; + regex_t *regex; +}; + struct rewrite { uint8_t *removeattrs; uint32_t *removevendorattrs; struct list *addattrs; + struct list *modattrs; }; struct rewriteconf { |