diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-11-04 21:59:12 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-11-04 21:59:12 +0000 |
commit | 64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2 (patch) | |
tree | 2c5f71d247607d17b55df210adc6b75d833b3572 /libssh/client.c | |
parent | 90bb81f7b0a729f0508c02586b3d609950d24f2c (diff) | |
download | libssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.tar.gz libssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.tar.xz libssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.zip |
doxygen fixes. Mostly typos and some comments.
sftp must be fully documented !
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@187 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libssh/client.c b/libssh/client.c index c1dc6daf..f2f2f2b8 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -87,10 +87,9 @@ int ssh_analyze_banner(SSH_SESSION *session, int *ssh1, int *ssh2){ return 0; } -/* ssh_send_banner sends a SSH banner to the server */ -/* TODO select a banner compatible with server version */ -/* switch SSH1/1.5/2 */ -/* and quit when the server is SSH1 only */ +/** \internal + * \brief ssh_send_banner sends a SSH banner to the server + */ int ssh_send_banner(SSH_SESSION *session,int server){ char *banner; @@ -269,12 +268,12 @@ int ssh_connect(SSH_SESSION *session){ ssh_set_error(session,SSH_FATAL,"Hostname required"); leave_function(); return SSH_ERROR; - } + } if(options->fd != -1) fd=options->fd; else fd=ssh_connect_host(session,options->host,options->bindaddr,options->port, - options->timeout,options->timeout_usec); + options->timeout,options->timeout_usec); if(fd<0){ leave_function(); return -1; @@ -336,7 +335,7 @@ int ssh_connect(SSH_SESSION *session){ session->alive=0; leave_function(); return -1; - } + } set_status(options,1.0); session->connected=1; break; @@ -349,14 +348,14 @@ int ssh_connect(SSH_SESSION *session){ } set_status(options,0.6); session->connected=1; - break; + break; } leave_function(); return 0; } /** this is the banner showing a disclaimer to users who log in, - * typicaly their right or the fact that they will be monitored + * typically their right or the fact that they will be monitored * \brief get the issue banner from the server * \param session ssh session * \return NULL if there is no issue banner, else a string containing it. |