diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-11-02 21:56:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-11-02 21:56:40 +0000 |
commit | 2147284cad624325f5b0034c2f394db62086d9e6 (patch) | |
tree | 4a874303150609f63388ada95e308f79c023519d /lib/ssh.h | |
parent | 7f1870da5f5fa114c461bc8d4651961ad0d370f0 (diff) | |
download | curl-2147284cad624325f5b0034c2f394db62086d9e6.tar.gz |
James Housley brought support for SCP transfers
Diffstat (limited to 'lib/ssh.h')
-rw-r--r-- | lib/ssh.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/ssh.h b/lib/ssh.h new file mode 100644 index 000000000..56f658a80 --- /dev/null +++ b/lib/ssh.h @@ -0,0 +1,40 @@ +#ifndef __SFTP_H +#define __SFTP_H + +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2006, 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 + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + * $Id$ + ***************************************************************************/ + +#ifdef USE_LIBSSH2 + +CURLcode Curl_scp_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); + +#endif + +#endif /* USE_LIBSSH2 */ |