aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-21 09:29:31 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-21 09:29:31 +0000
commit9249006e64470337422f4fd9e176ea2cb7d603e1 (patch)
tree1bf17b3ec94067a513e8e8827b95ce49d5d39cb3 /sample.c
parentc9818a994804f4b6ea30a22b7a42aef701db98d8 (diff)
downloadlibssh-9249006e64470337422f4fd9e176ea2cb7d603e1.tar.gz
libssh-9249006e64470337422f4fd9e176ea2cb7d603e1.tar.xz
libssh-9249006e64470337422f4fd9e176ea2cb7d603e1.zip
Add a ssh_version function.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@283 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 6676ffd..fdff41d 100644
--- a/sample.c
+++ b/sample.c
@@ -50,11 +50,13 @@ static void add_cmd(char *cmd){
static void usage(){
fprintf(stderr,"Usage : ssh [options] [login@]hostname\n"
+ "sample client - libssh-%s\n"
"Options :\n"
" -l user : log in as user\n"
" -p port : connect to port\n"
" -d : use DSS to verify host public key\n"
- " -r : use RSA to verify host public key\n");
+ " -r : use RSA to verify host public key\n",
+ ssh_version(0));
exit(0);
}