summaryrefslogtreecommitdiffstats
path: root/src/client.c
Commit message (Collapse)AuthorAgeFilesLines
* buffers: adapt client.c to ssh_buffer_(un)pack()Aris Adamantiadis2014-08-061-28/+14
| | | | Reviewed-by: Andreas Schneider <asn@samba.org>
* log: Fix log levels.Gangadhar Sandrani2014-04-221-1/+6
| | | | | Signed-off-by: Gangadhar Sandrani <gangadhar.sandrani@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* client: fix corner case when sockets are manually createdLuka Perkov2014-03-271-1/+4
| | | | | | | | | | If the sockets are created manually and passed to libssh the internal session state is set to SSH_SESSION_STATE_SOCKET_CONNECTED. Result of this fix can be verified by running torture_connect test (torture_connect_socket) with -vvvv flags. Signed-off-by: Luka Perkov <luka.perkov@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* server: use custom server bannersAudrius Butkevicius2014-02-041-2/+2
| | | | | | Value of session->serverbanner never gets used Signed-off-by: Audrius Butkevicius <audrius.butkevicius@gmail.com>
* client: Fix EOF session error reporting.Joseph Southwell2014-02-021-1/+2
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* server: allow custom server banners (bug #83)Aris Adamantiadis2014-02-011-1/+9
|
* src: Rename buffer_init to ssh_buffer_init().Andreas Schneider2014-01-191-8/+12
|
* update copyright informationAris Adamantiadis2014-01-071-3/+3
|
* client: use ssh_channel_do_free in ssh_disconnectJon Simons2013-12-111-1/+1
| | | | | | | | | | Ensure to use 'ssh_channel_do_free' in 'ssh_disconnect', when removing and free'ing up a session's channels. This matches the behavior in 'ssh_free', and is necessary to fully free any channel which may not have been closed completely (see usage of flags SSH_CHANNEL_FLAG_CLOSED_REMOTE, SSH_CHANNEL_FLAG_FREED_LOCAL). Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* client: If we have a pre-connected FD, set state to SOCKET_CONNECTEDColin Walters2013-11-091-0/+1
| | | | | | | Otherwise applications providing their own fd end up tripping an assertion, since the session is just in _CONNECTING. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* logging: fix wordingAris Adamantiadis2013-11-041-2/+2
|
* client: Fix the build.Andreas Schneider2013-10-181-1/+0
|
* client: Added a missing NULL pointer check.Oliver Stöneberg2013-10-181-8/+13
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* kex: implement curve25519-sha256@libssh.orgAris Adamantiadis2013-09-271-0/+5
|
* client: Add example code for ssh_get_openssh_version().Andreas Schneider2013-09-161-0/+8
| | | | BUG: https://red.libssh.org/issues/120
* src: Remove enter_function() and leave_function().Andreas Schneider2013-07-141-45/+27
|
* src: Migrate to SSH_LOG.Andreas Schneider2013-07-141-9/+9
|
* src: Add fall trough comments.Andreas Schneider2013-06-181-0/+1
|
* client: Fix possible NULL pointer dereference.Andreas Schneider2013-06-131-2/+2
|
* Implement key re-exchangeAris Adamantiadis2012-12-231-1/+4
|
* client: If session is NULL we can't set an error.Andreas Schneider2012-10-091-1/+0
| | | | Found by Coverity.
* client: Check return value of ssh_handle_packets_termination.Andreas Schneider2012-10-091-6/+9
| | | | Found by Coverity.
* dh: Add support for diffie-hellman-group14-sha1.Dmitriy Kuznetsov2012-09-041-0/+1
|
* build: Fix missing struct in_addr warning.Andreas Schneider2012-07-171-0/+1
|
* session: Use a struct for all options.Andreas Schneider2012-02-051-17/+20
|
* packet: Move packet callbacks to packet_cb.c.Andreas Schneider2011-09-181-154/+0
|
* priv: Move kex functions to kex header.Andreas Schneider2011-09-181-0/+1
|
* priv: Move options and config prototypes to own header.Andreas Schneider2011-09-181-0/+1
|
* client: Remove unused variable.Andreas Schneider2011-09-181-1/+0
|
* kex: moved KEX structures to ssh_crypto_structAris Adamantiadis2011-09-181-12/+1
|
* kex: split key selection and sendingAris Adamantiadis2011-09-181-3/+4
|
* session: Use defines for ssh_handle_packets().Andreas Schneider2011-09-171-2/+6
|
* Update libssh to ssh_handle_packets_terminationAris Adamantiadis2011-09-021-40/+53
| | | | | | | | | | | cherry-picked from 0cb5248 Should resolve all timeout problems Conflicts: src/auth.c src/channels.c
* channels: replaced bugged lists with ssh_listAris Adamantiadis2011-09-021-2/+5
| | | | | | | cherry-picked from 0aef5f Conflicts: src/session.c
* pki: We need only one signature verify blob function.Andreas Schneider2011-08-231-5/+34
| | | | This fixes the build without server.
* client: Migrate to new signature pki.Andreas Schneider2011-08-221-6/+10
|
* client: Fix another source of endless wait.rofl0r2011-08-061-12/+14
|
* Fixes the ssh_log issue on ssh_bind handles.Aris Adamantiadis2011-07-191-2/+2
|
* [crypto] initial support for ecdh-sha2-nistp256Aris Adamantiadis2011-06-131-49/+34
| | | | | Works with openssl Still requires work for libgcrypt and other modes
* Moved DH specific code to dh.hAris Adamantiadis2011-06-121-44/+3
|
* Introduced ssh_timeout_elapsed functionsAris Adamantiadis2011-05-241-6/+10
| | | | | | | Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard.
* connect: Set timeout on connectOliver Stöneberg2011-05-171-4/+6
| | | | | This also fixes error handling in ssh_poll_ctx_dopoll() and ssh_handle_packets(), so it won't loop forever on an actual timeout.
* SSH1: Update a few fix from 0.4.8-gitAris Adamantiadis2011-01-261-2/+4
|
* Fix double-connect testcaseAris Adamantiadis2011-01-151-1/+52
|
* Use termination functions for event pollingAris Adamantiadis2011-01-121-14/+23
|
* Non-blocking mode for ssh_connectAris Adamantiadis2011-01-101-2/+23
| | | | This looks ugly. I'll see if we need to revert or change that patch later.
* Fix connection callbacks called at wrong timeAris Adamantiadis2011-01-101-0/+11
|
* Fix "SSH_KEXINIT received in wrong state" raceAris Adamantiadis2011-01-041-1/+1
| | | | Setting the flag before doing any IO
* misc: Differentiate between client and server in ssh_analyze_banner.Andreas Schneider2010-09-291-1/+1
|
* misc: Move ssh_analyze_banner to a common location.Andreas Schneider2010-09-291-63/+2
| | | | Don't duplicate functions!