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; |