application/davcontroller.c

changeset 93
5ee236155955
parent 91
7ee944cf53de
child 95
e92c72705da4
--- 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;

mercurial