summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h10
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 {