dav/config.c

changeset 247
3020d1b5e7bd
parent 228
c0175372c35d
child 252
6b8e287269fc
equal deleted inserted replaced
246:470f0c2e505e 247:3020d1b5e7bd
265 else { 265 else {
266 fprintf(stderr, "Unknown ssl version: %s\n", value); 266 fprintf(stderr, "Unknown ssl version: %s\n", value);
267 } 267 }
268 } else if(xstreq(key, "authmethods")) { 268 } else if(xstreq(key, "authmethods")) {
269 repo->authmethods = CURLAUTH_NONE; 269 repo->authmethods = CURLAUTH_NONE;
270 const char *delims = " ,\r\n"; 270 const char *delims = " \r\n";
271 char *meths = strdup(value); 271 char *meths = strdup(value);
272 char *meth = strtok(meths, delims); 272 char *meth = strtok(meths, delims);
273 while (meth) { 273 while (meth) {
274 if(xstrEQ(value, "basic")) { 274 if(xstrEQ(value, "basic")) {
275 repo->authmethods |= CURLAUTH_BASIC; 275 repo->authmethods |= CURLAUTH_BASIC;

mercurial