cURL / Mailing Lists / curl-library / Single Mail

curl-library

SSPI and MingW

From: Gisle Vanem <giva_at_bgnett.no>
Date: Sat, 12 Mar 2005 08:12:15 +0100

There are some minor problems building with
USE_WINDOWS_SSPI on MingW;

* The curl header "security.h" header shadows for the Win32 SDK
  header of same name! I suggest renaming to "secure.h" or
  "curlsec.h".

* With MSVC and Win32 SDK, <Security.h> includes <sspi.h>. So
  the latter isn't really needed. But MingW needs <Security.h> first;

--- urldata.h 10 Mar 2005 23:15:30 -0000 1.261
+++ urldata.h 12 Mar 2005 07:06:27 -0000
@@ -193,8 +193,8 @@
  * or SECURITY_KERNEL, indicating who is compiling the code.
  */
 #define SECURITY_WIN32 1
-#include <sspi.h>
 #include <Security.h>
+#include <sspi.h>
 #include <rpc.h>
 #endif

--gv
Received on 2005-03-12