| 748 | } |
| 749 | |
| 750 | static int has_proxy_cert_password(void) |
| 751 | { |
| 752 | if (http_proxy_ssl_cert == NULL || proxy_ssl_cert_password_required != 1) |
| 753 | return 0; |
| 754 | if (!proxy_cert_auth.password) { |
| 755 | proxy_cert_auth.protocol = xstrdup("cert"); |
| 756 | proxy_cert_auth.host = xstrdup(""); |
| 757 | proxy_cert_auth.username = xstrdup(""); |
| 758 | proxy_cert_auth.path = xstrdup(http_proxy_ssl_cert); |
| 759 | credential_fill(the_repository, &proxy_cert_auth, 0); |
| 760 | } |
| 761 | return 1; |
| 762 | } |
| 763 | |
| 764 | static const struct socks_proxy_type { |
| 765 | const char *name; |
no test coverage detected