diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-18 21:53:48 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 15:46:57 +0000 |
commit | 6ba3e6affc73b84f6cd2cadf476c0e0c5e58e404 (patch) | |
tree | d958633935db6525125d62e38de1babac4dd086a | |
parent | 394ae7e10131a932def325fc3fc715056a784757 (diff) | |
download | libgit2-6ba3e6affc73b84f6cd2cadf476c0e0c5e58e404.tar.gz |
proxy tests: rename credential callback
Rename credential callback to proxy_cred_cb to match new cert callback.
-rw-r--r-- | tests/online/clone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 27b88392b..bfd50a16a 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -719,7 +719,7 @@ void test_online_clone__start_with_http(void) } static int called_proxy_creds; -static int proxy_creds(git_cred **out, const char *url, const char *username, unsigned int allowed, void *payload) +static int proxy_cred_cb(git_cred **out, const char *url, const char *username, unsigned int allowed, void *payload) { GIT_UNUSED(url); GIT_UNUSED(username); @@ -767,7 +767,7 @@ void test_online_clone__proxy_credentials_request(void) g_options.fetch_opts.proxy_opts.type = GIT_PROXY_SPECIFIED; g_options.fetch_opts.proxy_opts.url = url.ptr; - g_options.fetch_opts.proxy_opts.credentials = proxy_creds; + g_options.fetch_opts.proxy_opts.credentials = proxy_cred_cb; g_options.fetch_opts.proxy_opts.certificate_check = proxy_cert_cb; called_proxy_creds = 0; cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)); |