Commit 2f77ee0e authored by Pekka Pessi's avatar Pekka Pessi

tport: fix default certificate path for TLS

parent 9e9cbbc4
......@@ -207,8 +207,16 @@ static int tport_tls_init_master(tport_primary_t *pri,
TAG_END());
if (path) {
if (su_strmatch(path, ":") || su_strmatch(path, ""))
if (su_strmatch(path, ":") || su_strmatch(path, "")) {
path = NULL;
ti.policy = tls_policy | (tls_verify ? TPTLS_VERIFY_ALL : 0);
ti.verify_depth = tls_depth;
ti.verify_date = tls_date;
ti.version = tls_version;
tlspri->tlspri_master = tls_init_master(&ti);
}
} else {
homedir = getenv("HOME");
if (!homedir)
......
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