From d1d35ba85fe6f8a9e6a86d2a6c60109cf90edd6c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Mar 2005 23:15:29 +0000 Subject: 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. --- src/Makefile.vc6 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src') diff --git a/src/Makefile.vc6 b/src/Makefile.vc6 index 402b6f8f8..c7dc2c362 100644 --- a/src/Makefile.vc6 +++ b/src/Makefile.vc6 @@ -23,6 +23,24 @@ ZLIB_PATH = ../../zlib-1.2.1 OPENSSL_PATH = ../../openssl-0.9.7e !ENDIF +# 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 + ######################################################## ## Nothing more to do below this line! ZLIB_CFLAGS = /DHAVE_ZLIB_H /DHAVE_ZLIB /DHAVE_LIBZ /I "$(ZLIB_PATH)" @@ -49,6 +67,12 @@ CFLAGS = /I../lib /I../include /nologo /W3 /GX /DWIN32 /YX /FD /c LFLAGS = /nologo /out:$(PROGRAM_NAME) /subsystem:console /machine:I386 RESFLAGS = /i../include +!IFDEF WINDOWS_SSPI +CFLAGS = $(CFLAGS) /DUSE_WINDOWS_SSPI /I$(WINDOWS_SDK_PATH)\include +LFLAGS = $(LFLAGS) $(WINDOWS_SDK_PATH)\lib\secur32.lib +!ENDIF + +CFLAGS = $(CFLAGS) /DCURLDEBUG RELEASE_OBJS= \ hugehelpr.obj \ -- cgit v1.2.3