From f2acf5d28cb876ffa72e0a184c6f8d50dbf69b59 Mon Sep 17 00:00:00 2001 From: venaas Date: Thu, 24 Apr 2008 09:09:08 +0000 Subject: new tls server code seems to work.... git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@241 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 4 ++-- 1 file 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 -- cgit v1.1