Wed, 27 Nov 2024 16:48:59 +0100
use repo encryption and SSL settings, resolves #516
application/davcontroller.c | file | annotate | diff | comparison | revisions | |
application/settings.c | file | annotate | diff | comparison | revisions |
--- 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;
--- 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) {