Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c881632

Browse files
committed
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].
1 parent 21a351b commit c881632

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libgit2/transports/auth_sspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,14 @@ static int sspi_init_context(
324324
return 0;
325325
}
326326

327+
#ifdef GIT_AUTH_NEGOTIATE
327328
int git_http_auth_negotiate(
328329
git_http_auth_context **out,
329330
const git_net_url *url)
330331
{
331332
return sspi_init_context(out, GIT_HTTP_AUTH_NEGOTIATE, url);
332333
}
334+
#endif
333335

334336
int git_http_auth_ntlm(
335337
git_http_auth_context **out,

0 commit comments

Comments
 (0)