Some small patches needed when building using MingW 3.7 (or older):

(1) SECURITY_ENTRYPOINT is missing in MingW's <sspi.h>.
(2) gcc barfs at the cast "&((unsigned char *)".

--- neon-r1091/src/ne_sspi.c Tue Sep 05 13:43:47 2006
+++ ne_sspi.c   Mon Oct 30 21:07:23 2006
@@ -29,6 +29,10 @@

#define SEC_SUCCESS(Status) ((Status) >= 0)

+#ifndef SECURITY_ENTRYPOINT   /* Missing in MingW 3.7 */
+#define SECURITY_ENTRYPOINT "InitSecurityInterfaceA"
+#endif
+
struct SSPIContextStruct {
    CtxtHandle context;
    char *serverName;
@@ -278,7 +282,7 @@

    buffer->BufferType = SECBUFFER_TOKEN;
    buffer->cbBuffer =
-        ne_unbase64(token, &((unsigned char *) buffer->pvBuffer));
+        ne_unbase64(token, ((unsigned char **) buffer->pvBuffer));

    if (buffer->cbBuffer == 0) {
        NE_DEBUG(NE_DBG_HTTPAUTH,

--------------------

Gisle V.

# rm /bin/laden /bin/laden: Not found _______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to