Hi,

I just noticed that the CMake build system doesn't enable the
SPNEGO/SSPI module.

This could be fixed by adding the SERF_HAVE_SSPI definition when running
it on the Windows platform. I made a patch that fixes it. You may find it
below and attached to the email as 'serf-fix-sspi.patch.txt'.

[[[
cmake: Enable SPNEGO/SSPI module on Windows by adding the SERF_HAVE_SSPI
compile definition.

* CMakeLists.txt
  (windows compile options): Define SERF_HAVE_SSPI.

Patch by: rinrab

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 3393)
+++ CMakeLists.txt (revision 3394)
@@ -252,6 +252,7 @@
     "/DNOUSER" "/DNOGDI" "/DNONLS" "/DNOCRYPT"
     "/D_CRT_SECURE_NO_WARNINGS"
     "/D_CRT_NONSTDC_NO_WARNINGS"
+    "/DSERF_HAVE_SSPI"
   )
   if(SERF_WIN64)
     add_definitions("/DWIN64")
]]]

Thanks!

-- 
Timofei Zhakov

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 3393)
+++ CMakeLists.txt      (revision 3394)
@@ -252,6 +252,7 @@
     "/DNOUSER" "/DNOGDI" "/DNONLS" "/DNOCRYPT"
     "/D_CRT_SECURE_NO_WARNINGS"
     "/D_CRT_NONSTDC_NO_WARNINGS"
+    "/DSERF_HAVE_SSPI"
   )
   if(SERF_WIN64)
     add_definitions("/DWIN64")

Reply via email to