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

« back to all changes in this revision

Viewing changes to lib/ssh.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-26 18:58:51 UTC
  • mfrom: (3.3.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090526185851-t1gun9nboi5kbd9u
Tags: 7.19.5-1ubuntu1
* Merge from Debian unstable (LP: #380281), 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
* Fixes LP: #379477

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: ssh.h,v 1.17 2008-12-22 18:46:12 giva Exp $
 
23
 * $Id: ssh.h,v 1.18 2009-05-09 15:32:59 yangtse Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
#ifdef USE_LIBSSH2
29
29
#  error "SCP/SFTP protocols require libssh2 0.16 or later"
30
30
#endif
31
31
 
32
 
#if (LIBSSH2_VERSION_NUM >= 0x001300)
 
32
#if defined(LIBSSH2_VERSION_NUM) && (LIBSSH2_VERSION_NUM >= 0x001300)
33
33
/* libssh2 0.19 was the planned release version for a while before it was
34
34
   decided to instead become 1.0. Thus >= 0x001300 should still work fine
35
35
   for snapshots done during the 0.19 days as well as things released once
39
39
#  undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
40
40
#endif
41
41
 
42
 
#if (LIBSSH2_VERSION_NUM >= 0x010000)
 
42
#if defined(LIBSSH2_VERSION_NUM) && (LIBSSH2_VERSION_NUM >= 0x010000)
43
43
/* libssh2_sftp_seek64() has only ever been provided by libssh2 1.0 or
44
44
   later */
45
45
#  define HAVE_LIBSSH2_SFTP_SEEK64 1
64
64
#define Curl_ssh_enabled(conn,prot) (conn->protocol & prot)
65
65
 
66
66
#else /* USE_LIBSSH2 */
 
67
 
67
68
#define Curl_ssh_enabled(x,y) 0
68
69
#define Curl_scp_send(a,b,c,d) 0
69
70
#define Curl_sftp_send(a,b,c,d) 0