mirror of
https://github.com/curl/curl.git
synced 2026-07-25 03:07:17 +03:00
Markus Moeller's SPNEGO patch applied, with my edits, additions and minor
cleanups.
This commit is contained in:
parent
bbc01c36d2
commit
09ccfcdcd4
10 changed files with 150 additions and 16 deletions
|
|
@ -238,7 +238,7 @@ CURLcode http_auth_headers(struct connectdata *conn,
|
|||
}
|
||||
/* Send web authentication header if needed */
|
||||
if (data->state.authstage == 401) {
|
||||
#ifdef GSSAPI
|
||||
#ifdef HAVE_GSSAPI
|
||||
if((data->state.authwant == CURLAUTH_GSSNEGOTIATE) &&
|
||||
data->state.negotiate.context &&
|
||||
!GSS_ERROR(data->state.negotiate.status)) {
|
||||
|
|
@ -324,7 +324,7 @@ CURLcode Curl_http_auth(struct connectdata *conn,
|
|||
while(*start && isspace((int)*start))
|
||||
start++;
|
||||
|
||||
#ifdef GSSAPI
|
||||
#ifdef HAVE_GSSAPI
|
||||
if (checkprefix("GSS-Negotiate", start) ||
|
||||
checkprefix("Negotiate", start)) {
|
||||
*availp |= CURLAUTH_GSSNEGOTIATE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue