| 391 | } |
| 392 | |
| 393 | static int http_options(const char *var, const char *value, |
| 394 | const struct config_context *ctx, void *data) |
| 395 | { |
| 396 | if (!strcmp("http.version", var)) { |
| 397 | return git_config_string(&curl_http_version, var, value); |
| 398 | } |
| 399 | if (!strcmp("http.sslverify", var)) { |
| 400 | curl_ssl_verify = git_config_bool(var, value); |
| 401 | return 0; |
| 402 | } |
| 403 | if (!strcmp("http.sslcipherlist", var)) |
| 404 | return git_config_string(&ssl_cipherlist, var, value); |
| 405 | if (!strcmp("http.sslversion", var)) |
| 406 | return git_config_string(&ssl_version, var, value); |
| 407 | if (!strcmp("http.sslcert", var)) |
| 408 | return git_config_pathname(&ssl_cert, var, value); |
| 409 | if (!strcmp("http.sslcerttype", var)) |
| 410 | return git_config_string(&ssl_cert_type, var, value); |
| 411 | if (!strcmp("http.sslkey", var)) |
| 412 | return git_config_pathname(&ssl_key, var, value); |
| 413 | if (!strcmp("http.sslkeytype", var)) |
| 414 | return git_config_string(&ssl_key_type, var, value); |
| 415 | if (!strcmp("http.sslcapath", var)) |
| 416 | return git_config_pathname(&ssl_capath, var, value); |
| 417 | if (!strcmp("http.sslcainfo", var)) |
| 418 | return git_config_pathname(&ssl_cainfo, var, value); |
| 419 | if (!strcmp("http.sslcertpasswordprotected", var)) { |
| 420 | ssl_cert_password_required = git_config_bool(var, value); |
| 421 | return 0; |
| 422 | } |
| 423 | if (!strcmp("http.ssltry", var)) { |
| 424 | curl_ssl_try = git_config_bool(var, value); |
| 425 | return 0; |
| 426 | } |
| 427 | if (!strcmp("http.sslbackend", var)) { |
| 428 | free(http_ssl_backend); |
| 429 | http_ssl_backend = xstrdup_or_null(value); |
| 430 | return 0; |
| 431 | } |
| 432 | |
| 433 | if (!strcmp("http.schannelcheckrevoke", var)) { |
| 434 | http_schannel_check_revoke = git_config_bool(var, value); |
| 435 | return 0; |
| 436 | } |
| 437 | |
| 438 | if (!strcmp("http.schannelusesslcainfo", var)) { |
| 439 | http_schannel_use_ssl_cainfo = git_config_bool(var, value); |
| 440 | return 0; |
| 441 | } |
| 442 | |
| 443 | if (!strcmp("http.minsessions", var)) { |
| 444 | min_curl_sessions = git_config_int(var, value, ctx->kvi); |
| 445 | if (min_curl_sessions > 1) |
| 446 | min_curl_sessions = 1; |
| 447 | return 0; |
| 448 | } |
| 449 | if (!strcmp("http.maxrequests", var)) { |
| 450 | max_requests = git_config_int(var, value, ctx->kvi); |
nothing calls this directly
no test coverage detected