Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / lib / ssh.h
blob59f22d236121e0a3100dbc9e0d98df272b81dd6f
1 #ifndef __SSH_H
2 #define __SSH_H
4 /***************************************************************************
5 * _ _ ____ _
6 * Project ___| | | | _ \| |
7 * / __| | | | |_) | |
8 * | (__| |_| | _ <| |___
9 * \___|\___/|_| \_\_____|
11 * Copyright (C) 1998 - 2008, 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.1.1.1 2008-09-23 16:32:05 hoffman Exp $
25 ***************************************************************************/
27 #ifdef USE_LIBSSH2
28 extern const struct Curl_handler Curl_handler_scp;
29 extern const struct Curl_handler Curl_handler_sftp;
31 ssize_t Curl_scp_send(struct connectdata *conn, int sockindex,
32 const void *mem, size_t len);
33 ssize_t Curl_scp_recv(struct connectdata *conn, int sockindex,
34 char *mem, size_t len);
36 ssize_t Curl_sftp_send(struct connectdata *conn, int sockindex,
37 const void *mem, size_t len);
38 ssize_t Curl_sftp_recv(struct connectdata *conn, int sockindex,
39 char *mem, size_t len);
41 #define Curl_ssh_enabled(conn,prot) (conn->protocol & prot)
43 #else /* USE_LIBSSH2 */
44 #define Curl_ssh_enabled(x,y) 0
45 #define Curl_scp_send(a,b,c,d) 0
46 #define Curl_sftp_send(a,b,c,d) 0
47 #define Curl_scp_recv(a,b,c,d) 0
48 #define Curl_sftp_recv(a,b,c,d) 0
50 #endif /* USE_LIBSSH2 */
52 #endif /* __SSH_H */