8000 Merge pull request #7077 from JohannesWilde/AvoidDuplicateDefinition · libgit2/libgit2@dbc19dc · GitHub
[go: up one dir, main page]

Skip to content

Commit dbc19dc

Browse files
authored
Merge pull request #7077 from JohannesWilde/AvoidDuplicateDefinition
Avoid duplicate definition of git_http_auth_dummy.
2 parents d0da681 + dd65bfe commit dbc19dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libgit2/transports/auth_sspi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,22 @@ 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

336+
#ifdef GIT_AUTH_NTLM
334337
int git_http_auth_ntlm(
335338
git_http_auth_context **out,
336339
const git_net_url *url)
337340
{
338341
return sspi_init_context(out, GIT_HTTP_AUTH_NTLM, url);
339342
}
343+
#endif
340344

341345
#endif /* GIT_WIN32 */

0 commit comments

Comments
 (0)
0