Commit 4f87524a authored by venaas's avatar venaas Committed by venaas
Browse files

skip match of cert vs host when host contains / (prefix)

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@189 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 7f9ecad0
......@@ -601,6 +601,7 @@ int tlsverifycert(SSL *ssl, struct clsrvconf *conf) {
return 0;
}
if (conf->prefixlen == 255) {
if (inet_pton(AF_INET, conf->host, &addr))
type = AF_INET;
else if (inet_pton(AF_INET6, conf->host, &addr))
......@@ -642,6 +643,7 @@ int tlsverifycert(SSL *ssl, struct clsrvconf *conf) {
return 0;
}
}
}
if (conf->certuriregex) {
r = subjectaltnameregexp(cert, GEN_URI, NULL, conf->certuriregex);
if (r < 1) {
......
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