diff -r 44054c452de1 -r f448fc8c9191 dav/sync.c --- a/dav/sync.c Sat Feb 27 21:04:37 2016 +0100 +++ b/dav/sync.c Sun Feb 28 11:21:05 2016 +0100 @@ -153,9 +153,17 @@ url, repo->user, repo->password); - curl_easy_setopt(sn->handle, CURLOPT_SSLVERSION, repo->ssl_version); sn->flags = get_repository_flags(repo); sn->key = dav_context_get_key(ctx, repo->default_key); + curl_easy_setopt(sn->handle, CURLOPT_HTTPAUTH, repo->authmethods); + curl_easy_setopt(sn->handle, CURLOPT_SSLVERSION, repo->ssl_version); + if(repo->cert) { + curl_easy_setopt(sn->handle, CURLOPT_CAPATH, repo->cert); + } + if(!repo->verification) { + curl_easy_setopt(sn->handle, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(sn->handle, CURLOPT_SSL_VERIFYHOST, 0); + } return sn; }