diff options
Diffstat (limited to 'radsecproxy.h')
-rw-r--r-- | radsecproxy.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/radsecproxy.h b/radsecproxy.h index 11eebf8..f14e232 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -97,9 +97,8 @@ struct clsrvconf { regex_t *certuriregex; char *confrewritein; char *confrewriteout; - char *rewriteusername; - regex_t *rewriteusernameregex; - char *rewriteusernamereplacement; + char *confrewriteusername; + struct modattr *rewriteusername; char *dynamiclookupcommand; uint8_t statusserver; uint8_t retryinterval; @@ -173,10 +172,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 protodefs { |