Commit 6ba3e6af by Edward Thomson

proxy tests: rename credential callback

Rename credential callback to proxy_cred_cb to match new cert callback.
parent 394ae7e1
...@@ -719,7 +719,7 @@ void test_online_clone__start_with_http(void) ...@@ -719,7 +719,7 @@ void test_online_clone__start_with_http(void)
} }
static int called_proxy_creds; 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(url);
GIT_UNUSED(username); GIT_UNUSED(username);
...@@ -767,7 +767,7 @@ void test_online_clone__proxy_credentials_request(void) ...@@ -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.type = GIT_PROXY_SPECIFIED;
g_options.fetch_opts.proxy_opts.url = url.ptr; 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; g_options.fetch_opts.proxy_opts.certificate_check = proxy_cert_cb;
called_proxy_creds = 0; called_proxy_creds = 0;
cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)); cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment