summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-04-24 09:09:08 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-04-24 09:09:08 +0000
commitf2acf5d28cb876ffa72e0a184c6f8d50dbf69b59 (patch)
tree092ba3a6174031eb17d76a55041d75a1c0026063
parent45f93c599d8998a2362c93631e86cc5869a8ebd4 (diff)
new tls server code seems to work....
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@241 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 8bccae4..8011797 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -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