aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-27 10:58:29 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-27 10:58:29 +0000
commitc1c4f299ff8881fe0c8d51790d49bfb5fcd632df (patch)
treeb6d448bb156f7d4025778e5f76740ab7edb30dac /sample.c
parent99946c7bcc3be1a48e2546254e3c7e9ca8375412 (diff)
downloadlibssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.gz
libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.xz
libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.zip
Add option to build with or without sftp support.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index c5e1113f..13f4e921 100644
--- a/sample.c
+++ b/sample.c
@@ -273,7 +273,8 @@ static void batch_shell(SSH_SESSION *session){
}
select_loop(session,channel);
}
-
+
+#ifdef WITH_SFTP
/* it's just a proof of concept code for sftp, till i write a real documentation about it */
void do_sftp(SSH_SESSION *session){
SFTP_SESSION *sftp_session=sftp_new(session);
@@ -362,6 +363,7 @@ void do_sftp(SSH_SESSION *session){
sftp_free(sftp_session);
printf("session sftp termin�\n");
}
+#endif
static int auth_kbdint(SSH_SESSION *session){
int err=ssh_userauth_kbdint(session,NULL,NULL);