| 734 | } |
| 735 | |
| 736 | static int has_cert_password(void) |
| 737 | { |
| 738 | if (ssl_cert == NULL || ssl_cert_password_required != 1) |
| 739 | return 0; |
| 740 | if (!cert_auth.password) { |
| 741 | cert_auth.protocol = xstrdup("cert"); |
| 742 | cert_auth.host = xstrdup(""); |
| 743 | cert_auth.username = xstrdup(""); |
| 744 | cert_auth.path = xstrdup(ssl_cert); |
| 745 | credential_fill(the_repository, &cert_auth, 0); |
| 746 | } |
| 747 | return 1; |
| 748 | } |
| 749 | |
| 750 | static int has_proxy_cert_password(void) |
| 751 | { |
no test coverage detected