Commit 30f769ab authored by venaas's avatar venaas Committed by venaas

added regexp code, not used by default

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@88 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent dfcb1477
......@@ -1017,6 +1017,7 @@ struct server *id2server(char *id, uint8_t len) {
}
return deflt;
#else
int i;
for (i = 0; i < realm_count; i++)
if (!regexec(&realms[i].regex, id, 0, NULL, 0))
return realms[i].server;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment