mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-25 16:06:25 +00:00
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:
committed by
Edward Thomson
parent
c49a4cbed4
commit
4e29f74404
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user