James Housley brought support for SCP transfers
[platform/upstream/curl.git] / lib / ssh.h
1 #ifndef __SFTP_H
2 #define __SFTP_H
3
4 /***************************************************************************
5  *                                  _   _ ____  _
6  *  Project                     ___| | | |  _ \| |
7  *                             / __| | | | |_) | |
8  *                            | (__| |_| |  _ <| |___
9  *                             \___|\___/|_| \_\_____|
10  *
11  * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
12  *
13  * This software is licensed as described in the file COPYING, which
14  * you should have received as part of this distribution. The terms
15  * are also available at http://curl.haxx.se/docs/copyright.html.
16  *
17  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18  * copies of the Software, and permit persons to whom the Software is
19  * furnished to do so, under the terms of the COPYING file.
20  *
21  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22  * KIND, either express or implied.
23  *
24  * $Id$
25  ***************************************************************************/
26
27 #ifdef USE_LIBSSH2
28
29 CURLcode Curl_scp_connect(struct connectdata *conn, bool *done);
30 CURLcode Curl_scp_do(struct connectdata *conn, bool *done);
31 CURLcode Curl_scp_done(struct connectdata *conn, CURLcode);
32
33 int Curl_scp_send(struct connectdata *conn, int sockindex,
34                   void *mem, size_t len);
35 int Curl_scp_recv(struct connectdata *conn, int sockindex,
36                   char *mem, size_t len);
37
38 #endif
39
40 #endif /* USE_LIBSSH2 */