~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/http_digest.c

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-03-23 16:24:51 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: package-import@ubuntu.com-20120323162451-z4gstlabjkgnrh7h
Tags: upstream-7.25.0
ImportĀ upstreamĀ versionĀ 7.25.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2012, 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
34
34
#include "url.h" /* for Curl_safefree() */
35
35
#include "curl_memory.h"
36
36
#include "non-ascii.h" /* included for Curl_convert_... prototypes */
 
37
#include "warnless.h"
37
38
 
38
39
#define _MPRINTF_REPLACE /* use our functions only */
39
40
#include <curl/mprintf.h>
416
417
  */
417
418
  if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) {
418
419
    md5this = (unsigned char *)aprintf("%s:%.*s", request,
419
 
                                       (int)(tmp - (char *)uripath), uripath);
 
420
                                       curlx_sztosi(tmp - (char *)uripath),
 
421
                                       uripath);
420
422
  }
421
423
  else
422
424
    md5this = (unsigned char *)aprintf("%s:%s", request, uripath);