~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/http_negotiate.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070516151654-x9nkigtr2j0i8d0v
Tags: upstream-7.16.2
ImportĀ upstreamĀ versionĀ 7.16.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: http_negotiate.c,v 1.16 2006-05-04 22:39:47 bagder Exp $
 
21
 * $Id: http_negotiate.c,v 1.19 2007-04-04 23:41:35 danf Exp $
22
22
 ***************************************************************************/
23
23
#include "setup.h"
24
24
 
124
124
  bool gss;
125
125
  const char* protocol;
126
126
 
127
 
  while(*header && isspace((int)*header))
 
127
  while(*header && ISSPACE(*header))
128
128
    header++;
129
129
  if(checkprefix("GSS-Negotiate", header)) {
130
130
    protocol = "GSS-Negotiate";
160
160
    return ret;
161
161
 
162
162
  header += strlen(neg_ctx->protocol);
163
 
  while(*header && isspace((int)*header))
 
163
  while(*header && ISSPACE(*header))
164
164
    header++;
165
165
 
166
166
  len = strlen(header);
290
290
    }
291
291
  }
292
292
#endif
293
 
  len = Curl_base64_encode(neg_ctx->output_token.value,
 
293
  len = Curl_base64_encode(conn->data,
 
294
                           neg_ctx->output_token.value,
294
295
                           neg_ctx->output_token.length,
295
296
                           &encoded);
296
297
 
297
 
  if (len < 0)
 
298
  if (len == 0)
298
299
    return CURLE_OUT_OF_MEMORY;
299
300
 
300
301
  conn->allocptr.userpwd =