Avoid duplicate definition of git_http_auth_dummy.

src\libgit2\transports\auth_negotiate.h redefines git_http_auth_negotiate as git_http_auth_dummy if GIT_AUTH_NEGOTIATE is not defined, which thus leads to the uncommented code actually being a redifintion of git_http_auth_dummy. The linker complained [Windows 11, MSVC 2022 64bit].
This commit is contained in:
Johannes Wilde
2025-05-24 13:31:56 +02:00
committed by Edward Thomson
parent c49a4cbed4
commit 4e29f74404

View File

@@ -324,12 +324,14 @@ static int sspi_init_context(
return 0;
}
#if defined(GIT_GSSAPI) || defined(GIT_GSSFRAMEWORK) || defined(GIT_WIN32)
int git_http_auth_negotiate(
git_http_auth_context **out,
const git_net_url *url)
{
return sspi_init_context(out, GIT_HTTP_AUTH_NEGOTIATE, url);
}
#endif
int git_http_auth_ntlm(
git_http_auth_context **out,