~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to lib/strerror.c

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 2004 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 2004 - 2010, 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: strerror.c,v 1.56 2009-07-22 22:49:02 bagder Exp $
22
21
 ***************************************************************************/
23
22
 
24
23
#include "setup.h"
81
80
  case CURLE_REMOTE_ACCESS_DENIED:
82
81
    return "Access denied to remote resource";
83
82
 
 
83
  case CURLE_FTP_PRET_FAILED:
 
84
    return "FTP: The server did not accept the PRET command.";
 
85
 
84
86
  case CURLE_FTP_WEIRD_PASS_REPLY:
85
87
    return "FTP: unknown PASS reply";
86
88
 
267
269
  case CURLE_AGAIN:
268
270
    return "Socket not ready for send/recv";
269
271
 
 
272
  case CURLE_RTSP_CSEQ_ERROR:
 
273
    return "RTSP CSeq mismatch or invalid CSeq";
 
274
 
 
275
  case CURLE_RTSP_SESSION_ERROR:
 
276
    return "RTSP session error";
 
277
 
 
278
  case CURLE_FTP_BAD_FILE_LIST:
 
279
    return "Unable to parse FTP file list";
 
280
 
 
281
  case CURLE_CHUNK_FAILED:
 
282
    return "Chunk callback failed";
 
283
 
270
284
    /* error codes not used by current libcurl */
271
285
  case CURLE_OBSOLETE4:
272
286
  case CURLE_OBSOLETE10: