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

« back to all changes in this revision

Viewing changes to lib/socks.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 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
 * Copyright (C) 1998 - 2009, 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: socks.h,v 1.6 2008-01-02 21:40:12 bagder Exp $
 
23
 * $Id: socks.h,v 1.7 2009-01-28 21:34:16 bagder Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
/*
 
27
 * Helper read-from-socket functions. Does the same as Curl_read() but it
 
28
 * blocks until all bytes amount of buffersize will be read. No more, no less.
 
29
 *
 
30
 * This is STUPID BLOCKING behaviour which we frown upon, but right now this
 
31
 * is what we have...
 
32
 */
 
33
int Curl_blockread_all(struct connectdata *conn,
 
34
                       curl_socket_t sockfd,
 
35
                       char *buf,
 
36
                       ssize_t buffersize,
 
37
                       ssize_t *n,
 
38
                       long conn_timeout);
 
39
 
 
40
/*
27
41
 * This function logs in to a SOCKS4(a) proxy and sends the specifics to the
28
42
 * final destination server.
29
43
 */
45
59
                     int sockindex,
46
60
                     struct connectdata *conn);
47
61
 
 
62
#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
 
63
/*
 
64
 * This function handles the sockss5 gssapie negotiation and initialisation
 
65
 */
 
66
CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
 
67
                                      struct connectdata *conn);
48
68
#endif
 
69
 
 
70
#endif  /* __SOCKS_H */