Avoid duplicate definition of git_http_auth_dummy
authorEdward Thomson <[email protected]>
Thu, 5 Jun 2025 12:20:29 +0000 (5 13:20 +0100)
committerEdward 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

index fcd2dde..ae8343e 100644 (file)
@@ -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 */