cURL / Mailing Lists / curl-library / Single Mail


Re: Wrong Digest Authentication header when using Windows SSPI

From: LRN <>
Date: Thu, 23 Apr 2015 18:14:02 +0300

On 23.04.2015 17:54, Daniel Stenberg wrote:
> On Thu, 23 Apr 2015, LRN wrote:
>> Yes, it does (does not apply to 7.42.0 cleanly though, had to tweak it).
> Nice, can you post an updated version of the patch for us to consider to
> merge?
> I mostly lack a review and a +1 from someone who knows something about Windows
> and SSPI, but a "works for me" goes pretty far too.

The attached patch applies to 7.42.0 cleanly.
The only hunk that needed to change was the one that adds #include "rawstr.h"
Even without this hunk the code compiles, albeit with warnings (implicit
declarations of raw string functions).
Even with this hunk i still get *some* warnings:

../../curl-7.42.0/lib/curl_sasl_sspi.c:291:10: warning: no previous prototype
for 'Curl_override_sspi_http_realm' [-Wmissing-prototypes]
 CURLcode Curl_override_sspi_http_realm (const char *chlg,
../../curl-7.42.0/lib/curl_sasl_sspi.c: In function
../../curl-7.42.0/lib/curl_sasl_sspi.c:448:39: warning: pointer targets in
passing argument 1 of 'Curl_override_sspi_http_realm' differ in signedness
     if (Curl_override_sspi_http_realm(digest->input_token, &identity))
../../curl-7.42.0/lib/curl_sasl_sspi.c:291:10: note: expected 'const char *'
but argument is of type 'BYTE *'
 CURLcode Curl_override_sspi_http_realm (const char *chlg,

Both should be easy to fix (provide a prototype just before the function to
placate gcc; cast the argument as 'const char*')

O< ascii ribbon - stop html email! -

List admin:

Received on 2015-04-23