Commit 775dbbe7 authored by Pekka Pessi's avatar Pekka Pessi

tport: use default verify path with TPTAG_CERTIFICATE(":")

parent 241579dd
......@@ -259,6 +259,12 @@ tag_typedef_t tptag_sigcomp_lifetime = UINTTAG_TYPEDEF(sigcomp_lifetime);
*
* Use with tport_tbind(), nua_create(), nta_agent_create(),
* nta_agent_add_tport(), nth_engine_create(), or initial nth_site_create().
*
* If NULL or not used, verify path "$HOME/.sip/auth" is used.
*
* @note
* The system default verify path is used with value ":" or "" from
* release @VERSION_UNRELEASED onwards.
*/
tag_typedef_t tptag_certificate = STRTAG_TYPEDEF(certificate);
......
......@@ -206,7 +206,10 @@ static int tport_tls_init_master(tport_primary_t *pri,
TPTAG_TLS_VERIFY_SUBJECTS_REF(tls_subjects),
TAG_END());
if (!path) {
if (path) {
if (su_strmatch(path, ":") || su_strmatch(path, ""))
path = NULL;
} else {
homedir = getenv("HOME");
if (!homedir)
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