aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-08-04 17:23:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-08-04 18:29:13 +0200
commitf8cf037ecf67d4dc490e0e54fb2c691211e859ba (patch)
treeb1e25f66a563d18a7b199312392454b624ddd644 /lib/ssh.h
parent6028fdb3053657ae0bd099b704eca0e108ed9b7d (diff)
SCP: send large files properly with new enough libssh2
libssh2 1.2.6 and later handle >32bit file sizes properly even on 32bit architectures and we make sure to use that ability. Reported by: Mikael Johansson Bug: http://curl.haxx.se/mail/lib-2010-08/0052.html
Diffstat (limited to 'lib/ssh.h')
-rw-r--r--lib/ssh.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ssh.h b/lib/ssh.h
index b92b5c03b..d0882e956 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -158,6 +158,12 @@ struct ssh_conn {
# undef HAVE_LIBSSH2_SFTP_SEEK64
#endif
+#if defined(LIBSSH2_VERSION_NUM) && (LIBSSH2_VERSION_NUM >= 0x010206)
+# define HAVE_LIBSSH2_SCP_SEND64 1
+#else
+# undef HAVE_LIBSSH2_SFTP_SEEK64
+#endif
+
extern const struct Curl_handler Curl_handler_scp;
extern const struct Curl_handler Curl_handler_sftp;