David Rosenstrauch reported that header files spnegohelp.h and
authorYang Tse <yangsita@gmail.com>
Mon, 26 May 2008 03:10:34 +0000 (03:10 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 26 May 2008 03:10:34 +0000 (03:10 +0000)
openssl/objects.h were needed to compile SPNEGO support.

CHANGES
RELEASE-NOTES
lib/http_negotiate.c

diff --git a/CHANGES b/CHANGES
index 7112efc..5193380 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,10 @@
                                   Changelog
 
 
+Yang Tse (26 May 2008)
+- David Rosenstrauch reported that header files spnegohelp.h and
+  openssl/objects.h were needed to compile SPNEGO support.
+
 Daniel Fandrich (22 May 2008)
 - Made sure to pass longs in to curl_easy_setopt where necessary in the
   example programs and libtest code.
index a52f71f..c3d7b77 100644 (file)
@@ -57,6 +57,7 @@ advice from friends like these:
  Michal Marek, Daniel Fandrich, Scott Barrett, Alexey Simak, Daniel Black,
  Rafa Muyo, Andre Guibert de Bruet, Brock Noland, Sandor Feldi, Stefan Krause,
  David Shaw, Norbert Frese, Bart Whiteley, Jean-Francois Bertrand, Ben Van Hof,
- Yuriy Sosov, Christopher Palow, Yang Tse, Liam Healy, Nikolai Kondrashov
+ Yuriy Sosov, Christopher Palow, Yang Tse, Liam Healy, Nikolai Kondrashov,
+ David Rosenstrauch
 
         Thanks! (and sorry if I forgot to mention someone)
index e7f9348..9644a75 100644 (file)
 #include "http_negotiate.h"
 #include "memory.h"
 
+#ifdef HAVE_SPNEGO
+# include <spnegohelp.h>
+# if defined(USE_OPENSSL) && !defined(USE_YASSLEMUL)
+#  include <openssl/objects.h>
+# else
+#  error "Can't compile SPNEGO support without OpenSSL."
+# endif
+#endif
+
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>