Skip to content

Commit 6ba3e6a

Browse files
committed
proxy tests: rename credential callback
Rename credential callback to proxy_cred_cb to match new cert callback.
1 parent 394ae7e commit 6ba3e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/online/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ void test_online_clone__start_with_http(void)
719719
}
720720

721721
static int called_proxy_creds;
722-
static int proxy_creds(git_cred **out, const char *url, const char *username, unsigned int allowed, void *payload)
722+
static int proxy_cred_cb(git_cred **out, const char *url, const char *username, unsigned int allowed, void *payload)
723723
{
724724
GIT_UNUSED(url);
725725
GIT_UNUSED(username);
@@ -767,7 +767,7 @@ void test_online_clone__proxy_credentials_request(void)
767767

768768
g_options.fetch_opts.proxy_opts.type = GIT_PROXY_SPECIFIED;
769769
g_options.fetch_opts.proxy_opts.url = url.ptr;
770-
g_options.fetch_opts.proxy_opts.credentials = proxy_creds;
770+
g_options.fetch_opts.proxy_opts.credentials = proxy_cred_cb;
771771
g_options.fetch_opts.proxy_opts.certificate_check = proxy_cert_cb;
772772
called_proxy_creds = 0;
773773
cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));

0 commit comments

Comments
 (0)