From b8c08c68bcc4933c7d0bdd0816d21563f3bfc06f Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 9 Sep 2008 07:56:56 +0000 Subject: added support for modifying attributes git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@370 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'radsecproxy.h') 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 { -- cgit v1.1