dav/main.c

changeset 154
3cfb4670d9e6
parent 152
ff854d3df20c
child 165
b66bed169fc3
equal deleted inserted replaced
153:272173064319 154:3cfb4670d9e6
342 342
343 static DavSession* connect_to_repo(Repository *repo) { 343 static DavSession* connect_to_repo(Repository *repo) {
344 DavSession *sn = dav_session_new_auth(ctx, repo->url, repo->user, repo->password); 344 DavSession *sn = dav_session_new_auth(ctx, repo->url, repo->user, repo->password);
345 sn->flags = get_repository_flags(repo); 345 sn->flags = get_repository_flags(repo);
346 sn->key = dav_context_get_key(ctx, repo->default_key); 346 sn->key = dav_context_get_key(ctx, repo->default_key);
347 curl_easy_setopt(sn->handle, CURLOPT_HTTPAUTH, repo->authmethods);
347 curl_easy_setopt(sn->handle, CURLOPT_SSLVERSION, repo->ssl_version); 348 curl_easy_setopt(sn->handle, CURLOPT_SSLVERSION, repo->ssl_version);
348 return sn; 349 return sn;
349 } 350 }
350 351
351 int cmd_list(CmdArgs *a) { 352 int cmd_list(CmdArgs *a) {

mercurial