~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to packages/OS400/ccsidcurl.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2009, 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: ccsidcurl.c,v 1.6 2008-04-07 13:09:17 patrickm Exp $
 
21
 * $Id: ccsidcurl.c,v 1.14 2009-02-17 16:16:27 patrickm Exp $
22
22
 *
23
23
 ***************************************************************************/
24
24
 
33
33
#pragma enum(int)
34
34
 
35
35
#include <curl/curl.h>
 
36
#include <curl/mprintf.h>
36
37
#include "urldata.h"
37
38
#include "url.h"
38
39
#include "getinfo.h"
727
728
  /* Allocate the local curl_forms array. */
728
729
 
729
730
  lformlen = ALLOC_GRANULE;
730
 
  lforms = (struct curl_forms *) malloc(lformlen * sizeof * lforms);
 
731
  lforms = malloc(lformlen * sizeof *lforms);
731
732
 
732
733
  if (!lforms)
733
734
    return CURL_FORMADD_MEMORY;
749
750
 
750
751
    if (nargs >= lformlen) {
751
752
      lformlen += ALLOC_GRANULE;
752
 
      tforms = (struct curl_forms *) realloc((char *) lforms,
753
 
                                             lformlen * sizeof *lforms);
 
753
      tforms = realloc(lforms, lformlen * sizeof *lforms);
754
754
 
755
755
      if (!tforms) {
756
756
        result = CURL_FORMADD_MEMORY;
1030
1030
  if (testwarn) {
1031
1031
    testwarn = 0;
1032
1032
 
1033
 
    if ((int) STRING_LAST != (int) STRING_SSH_HOST_PUBLIC_KEY_MD5 + 1)
 
1033
    if ((int) STRING_LAST != (int) STRING_SOCKS5_GSSAPI_SERVICE + 1)
1034
1034
      curl_mfprintf(stderr,
1035
1035
       "*** WARNING: curl_easy_setopt_ccsid() should be reworked ***\n");
1036
1036
    }
1073
1073
  case CURLOPT_USERAGENT:
1074
1074
  case CURLOPT_USERPWD:
1075
1075
  case CURLOPT_SSH_HOST_PUBLIC_KEY_MD5:
 
1076
  case CURLOPT_CRLFILE:
 
1077
  case CURLOPT_ISSUERCERT:
 
1078
  case CURLOPT_USERNAME:
 
1079
  case CURLOPT_PASSWORD:
 
1080
  case CURLOPT_PROXYUSERNAME:
 
1081
  case CURLOPT_PROXYPASSWORD:
 
1082
  case CURLOPT_NOPROXY:
 
1083
  case CURLOPT_SOCKS5_GSSAPI_SERVICE:
1076
1084
    s = va_arg(arg, char *);
1077
1085
    ccsid = va_arg(arg, unsigned int);
1078
1086