On Mon, Oct 30, 2006 at 09:12:34PM +0100, Gisle Vanem wrote:
> 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 *)".
Thanks for the patch. I think the second hunk in that diff must be
wrong since it passes pvBuffer rather than the address thereof. I
committed a fix to change the line like this instead:
- ne_unbase64(token, &((unsigned char *) buffer->pvBuffer));
+ ne_unbase64(token, (unsigned char **) &buffer->pvBuffer);
instead.
joe
> --- 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
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon