Commit f2acf5d2 authored by venaas's avatar venaas Committed by venaas
Browse files

new tls server code seems to work....

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@241 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 45f93c59
......@@ -2736,10 +2736,10 @@ int addmatchcertattr(struct clsrvconf *conf, char *matchcertattr) {
char *v;
regex_t **r;
if (strncasecmp(matchcertattr, "CN:/", 4)) {
if (!strncasecmp(matchcertattr, "CN:/", 4)) {
r = &conf->certcnregex;
v = matchcertattr + 4;
} else if (strncasecmp(matchcertattr, "SubjectAltName:URI:/", 20)) {
} else if (!strncasecmp(matchcertattr, "SubjectAltName:URI:/", 20)) {
r = &conf->certuriregex;
v = matchcertattr + 20;
} else
......
Supports Markdown
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