repo.or.cz
/
libgit2
/
github.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
c881632
)
Avoid duplicate definition of git_http_auth_dummy
author
Edward Thomson
<
[email protected]
>
Thu, 5 Jun 2025 12:20:29 +0000
(5 13:20 +0100)
committer
Edward Thomson
<
[email protected]
>
Thu, 5 Jun 2025 12:20:29 +0000
(5 13:20 +0100)
Avoid defining `git_http_auth_ntlm` when not using ntlm; this will be
set to a dummy function instead.
src/libgit2/transports/auth_sspi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/libgit2/transports/auth_sspi.c
b/src/libgit2/transports/auth_sspi.c
index
fcd2dde
..
ae8343e
100644
(file)
--- a/
src/libgit2/transports/auth_sspi.c
+++ b/
src/libgit2/transports/auth_sspi.c
@@
-333,11
+333,13
@@
int git_http_auth_negotiate(
}
#endif
+#ifdef GIT_AUTH_NTLM
int git_http_auth_ntlm(
git_http_auth_context **out,
const git_net_url *url)
{
return sspi_init_context(out, GIT_HTTP_AUTH_NTLM, url);
}
+#endif
#endif /* GIT_WIN32 */