summaryrefslogtreecommitdiff
path: root/lib/ssh.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-11-24 22:14:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-11-24 22:14:39 +0000
commita634f644005cbe2b3dea2b84328d605ec3474054 (patch)
tree477b5f395ae34ee2071fb078deee58f9eed0cdc7 /lib/ssh.h
parentbcd8a3b2403d6269a121c469273880021f2cfb20 (diff)
downloadcurl-a634f644005cbe2b3dea2b84328d605ec3474054.tar.gz
James Housley did lots of work and introduced SFTP downloads.
Diffstat (limited to 'lib/ssh.h')
-rw-r--r--lib/ssh.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/lib/ssh.h b/lib/ssh.h
index 56f658a80..b491a7684 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -1,5 +1,5 @@
-#ifndef __SFTP_H
-#define __SFTP_H
+#ifndef __SSH_H
+#define __SSH_H
/***************************************************************************
* _ _ ____ _
@@ -26,15 +26,24 @@
#ifdef USE_LIBSSH2
-CURLcode Curl_scp_connect(struct connectdata *conn, bool *done);
+CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done);
+
CURLcode Curl_scp_do(struct connectdata *conn, bool *done);
CURLcode Curl_scp_done(struct connectdata *conn, CURLcode);
-int Curl_scp_send(struct connectdata *conn, int sockindex,
- void *mem, size_t len);
-int Curl_scp_recv(struct connectdata *conn, int sockindex,
- char *mem, size_t len);
+ssize_t Curl_scp_send(struct connectdata *conn, int sockindex,
+ void *mem, size_t len);
+ssize_t Curl_scp_recv(struct connectdata *conn, int sockindex,
+ char *mem, size_t len);
+
+CURLcode Curl_sftp_do(struct connectdata *conn, bool *done);
+CURLcode Curl_sftp_done(struct connectdata *conn, CURLcode);
-#endif
+ssize_t Curl_sftp_send(struct connectdata *conn, int sockindex,
+ void *mem, size_t len);
+ssize_t Curl_sftp_recv(struct connectdata *conn, int sockindex,
+ char *mem, size_t len);
#endif /* USE_LIBSSH2 */
+
+#endif /* __SSH_H */