~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to lib/sendf.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
 
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
 *
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: sendf.h,v 1.43 2008-05-09 11:27:55 mmarek Exp $
 
23
 * $Id: sendf.h,v 1.46 2008-09-29 11:13:37 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#include "setup.h"
58
58
void Curl_read_rewind(struct connectdata *conn,
59
59
                      size_t extraBytesRead);
60
60
 
 
61
/* internal read-function, does plain socket only */
 
62
int Curl_read_plain(curl_socket_t sockfd,
 
63
                    char *buf,
 
64
                    size_t bytesfromsocket,
 
65
                    ssize_t *n);
 
66
 
61
67
/* internal read-function, does plain socket, SSL and krb4 */
62
68
int Curl_read(struct connectdata *conn, curl_socket_t sockfd,
63
69
              char *buf, size_t buffersize,
64
70
              ssize_t *n);
65
 
/* internal write-function, does plain socket, SSL and krb4 */
 
71
/* internal write-function, does plain socket, SSL, SCP, SFTP and krb4 */
66
72
CURLcode Curl_write(struct connectdata *conn,
67
73
                    curl_socket_t sockfd,
68
74
                    const void *mem, size_t len,
69
75
                    ssize_t *written);
70
76
 
 
77
/* internal write-function, does plain sockets ONLY */
 
78
CURLcode Curl_write_plain(struct connectdata *conn,
 
79
                          curl_socket_t sockfd,
 
80
                          const void *mem, size_t len,
 
81
                          ssize_t *written);
 
82
 
71
83
/* the function used to output verbose information */
72
84
int Curl_debug(struct SessionHandle *handle, curl_infotype type,
73
85
               char *data, size_t size,