diff -r 43aee6c8c166 -r 5ee236155955 application/davcontroller.c --- a/application/davcontroller.c Wed Nov 27 16:42:19 2024 +0100 +++ b/application/davcontroller.c Wed Nov 27 16:48:59 2024 +0100 @@ -175,6 +175,18 @@ } free(password_free); + sn->flags = dav_repository_get_flags(repo); + sn->key = dav_context_get_key(application_dav_context(), repo->default_key.value.ptr); + curl_easy_setopt(sn->handle, CURLOPT_SSLVERSION, repo->ssl_version); + if(repo->cert.value.ptr) { + curl_easy_setopt(sn->handle, CURLOPT_CAINFO, repo->cert.value.ptr); + } + if(!repo->verification.value) { + curl_easy_setopt(sn->handle, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(sn->handle, CURLOPT_SSL_VERIFYHOST, 0); + } + + browser->sn = sn; if (repo->name.value.length > 0) { browser->repo_base = cx_strdup(cx_strn(repo->name.value.ptr, repo->name.value.length)).ptr;