8000 Avoid duplicate definition of git_http_auth_dummy · libgit2/libgit2@dd65bfe · GitHub
[go: up one dir, main page]

Skip to content

Commit dd65bfe

Browse files
committed
Avoid duplicate definition of git_http_auth_dummy
Avoid defining `git_http_auth_ntlm` when not using ntlm; this will be set to a dummy function instead.
1 parent c881632 commit dd65bfe

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
7C64
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,13 @@ int git_http_auth_negotiate(
333333
}
334334
#endif
335335

336+
#ifdef GIT_AUTH_NTLM
336337
int git_http_auth_ntlm(
337338
git_http_auth_context **out,
338339
const git_net_url *url)
339340
{
340341
return sspi_init_context(out, GIT_HTTP_AUTH_NTLM, url);
341342
}
343+
#endif
342344

343345
#endif /* GIT_WIN32 */

0 commit comments

Comments
 (0)
0