From 74c9c1afa9db2ea9045196b39be0e2aeb847c0ee Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 10 May 2010 22:44:06 +0200 Subject: [PATCH] Added code to test proxycommand Conflicts: examples/sample.c --- examples/sample.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/examples/sample.c b/examples/sample.c index 20abe318..b7f6074d 100644 --- a/examples/sample.c +++ b/examples/sample.c @@ -42,6 +42,8 @@ struct termios terminal; char *pcap_file=NULL; +char *proxycommand; + static int auth_callback(const char *prompt, char *buf, size_t len, int echo, int verify, void *userdata) { char *answer = NULL; @@ -91,6 +93,9 @@ static void usage(){ " -r : use RSA to verify host public key\n" #ifdef WITH_PCAP " -P file : create a pcap debugging file\n" +#endif +#ifndef _WIN32 + " -T proxycommand : command to execute as a socket proxy\n" #endif , ssh_version(0)); @@ -102,11 +107,16 @@ static int opts(int argc, char **argv){ // for(i=0;i