Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl / ssh.h
blob7022136eb32f5e119feea18c5259235e000c8721
1 #ifndef __SSH_H
2 #define __SSH_H
4 /***************************************************************************
5 * _ _ ____ _
6 * Project ___| | | | _ \| |
7 * / __| | | | |_) | |
8 * | (__| |_| | _ <| |___
9 * \___|\___/|_| \_\_____|
11 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
24 * $Id: ssh.h,v 1.2 2007/03/15 19:22:13 andy Exp $
25 ***************************************************************************/
27 #ifdef USE_LIBSSH2
29 CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done);
31 CURLcode Curl_scp_do(struct connectdata *conn, bool *done);
32 CURLcode Curl_scp_done(struct connectdata *conn, CURLcode, bool premature);
34 ssize_t Curl_scp_send(struct connectdata *conn, int sockindex,
35 void *mem, size_t len);
36 ssize_t Curl_scp_recv(struct connectdata *conn, int sockindex,
37 char *mem, size_t len);
39 CURLcode Curl_sftp_do(struct connectdata *conn, bool *done);
40 CURLcode Curl_sftp_done(struct connectdata *conn, CURLcode, bool premature);
42 ssize_t Curl_sftp_send(struct connectdata *conn, int sockindex,
43 void *mem, size_t len);
44 ssize_t Curl_sftp_recv(struct connectdata *conn, int sockindex,
45 char *mem, size_t len);
47 #endif /* USE_LIBSSH2 */
49 #endif /* __SSH_H */