summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2008-09-08 15:44:56 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-09-08 15:44:56 +0000
commitf022b8a4eabac961682949b15cc654a7f403177b (patch)
treeec99fc212ae4f18326b58d8441b862880aa6454b /radsecproxy.h
parent74ba8cbc3a91ba4fe3e73da9bb27959f73380265 (diff)
finished attribute rewrite code, also used for username, testing needed
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@369 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h12
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 {