# HG changeset patch # User Olaf Wintermann # Date 1732722539 -3600 # Node ID 5ee2361559552fe74adcd128e1ab35d74f78f5da # Parent 43aee6c8c1665273a5fc334acce7541e90435441 use repo encryption and SSL settings, resolves #516 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; diff -r 43aee6c8c166 -r 5ee236155955 application/settings.c --- a/application/settings.c Wed Nov 27 16:42:19 2024 +0100 +++ b/application/settings.c Wed Nov 27 16:48:59 2024 +0100 @@ -1386,7 +1386,7 @@ const char* settings_get_cryptoflag(UiBool encrypted) { - return encrypted ? "C" : ""; + return encrypted ? "c" : ""; } const char* settings_get_lockflag(UiBool locked) {