aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.vc6
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-10 23:15:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-10 23:15:29 +0000
commitd1d35ba85fe6f8a9e6a86d2a6c60109cf90edd6c (patch)
treec06d860dc1025900ec91c85dd09e9989f5aeab4b /lib/Makefile.vc6
parent2ab2e7675c2089b44210d19e92e07fbd5ca9084b (diff)
Christopher R. Palmer made it possible to build libcurl with the
USE_WINDOWS_SSPI on Windows, and then libcurl will be built to use the native way to do NTLM. SSPI also allows libcurl to pass on the current user and its password in the request.
Diffstat (limited to 'lib/Makefile.vc6')
-rw-r--r--lib/Makefile.vc625
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/Makefile.vc6 b/lib/Makefile.vc6
index 3b65abf74..a8d4379af 100644
--- a/lib/Makefile.vc6
+++ b/lib/Makefile.vc6
@@ -42,7 +42,25 @@ OPENSSL_PATH = ../../openssl-0.9.7e
ZLIB_PATH = ../../zlib-1.2.1
!ENDIF
-# Use the high resolution time by default. Comment this out to use low
+# USE_WINDOWS_SSPI uses windows libraries to allow NTLM authentication
+# without an openssl installation and offers the ability to authenticate
+# using the "current logged in user". It does however require that the
+# Windows SDK be installed.
+#
+# If, for some reason the Windows SDK is installed but not installed
+# in the default location, you can specify WINDOWS_SDK_PATH.
+# It can be downloaded from:
+# http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
+
+# USE_WINDOWS_SSPI = 1
+
+!IFDEF WINDOWS_SSPI
+!IFNDEF WINDOWS_SDK_PATH
+WINDOWS_SDK_PATH = "C:\Program Files\Microsoft SDK"
+!ENDIF
+!ENDIF
+
+Use the high resolution time by default. Comment this out to use low
# resolution time and not require winmm.lib
USEMM_LIBS = YES
@@ -69,6 +87,11 @@ CFLAGS = $(CFLAGS) /DWITHOUT_MM_LIB
# RSAglue.lib was formerly needed in the SSLLIBS
CFGSET = FALSE
+!IFDEF WINDOWS_SSPI
+CFLAGS = $(CFLAGS) /DUSE_WINDOWS_SSPI /I$(WINDOWS_SDK_PATH)\include
+LFLAGS = $(LFLAGS) $(WINDOWS_SDK_PATH)\lib\secur32.lib
+!ENDIF
+
######################
# release