Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | server: fix auth_interactive_request reply | Jon Simons | 2014-10-02 | 1 | -1/+1 |
| | | | | | | | | Fix a missing 'buffer_pack' formatter in 'ssh_message_auth_interactive_request'. With this fix the 'examples/samplesshd-kbdint' program is working again for me. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | buffers: adapt server.c to ssh_buffer_(un)pack() | Aris Adamantiadis | 2014-08-06 | 1 | -178/+108 |
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> | ||||
* | kex: server fix for first_kex_packet_follows | Jon Simons | 2014-04-22 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Ensure to honor the 'first_kex_packet_follow' field when processing KEXINIT messages in the 'ssh_packet_kexinit' callback. Until now libssh would assume that this field is always unset (zero). But some clients may set this (dropbear at or beyond version 2013.57), and it needs to be included when computing the session ID. Also include logic for handling wrongly-guessed key exchange algorithms. Save whether a client's guess is wrong in a new field in the session struct: when set, the next KEX_DHINIT message to be processed will be ignored per RFC 4253, 7.1. While here, update both 'ssh_packet_kexinit' and 'make_sessionid' to use softabs with a 4 space indent level throughout, and also convert various error-checking to store intermediate values into an explicit 'rc'. Patch adjusted from original to ensure that client tests remain passing (ie 'torture_connect'): restrict the changes in 'ssh_packet_kexinit' only for the 'server_kex' case. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | Revert "kex: server fix for first_kex_packet_follows" | Andreas Schneider | 2014-04-15 | 1 | -9/+0 |
| | | | | | | The patch breaks the client with ECDSA. This reverts commit 5865b9436fda96ac9fc7c18e4dffe5fb12dcc515. | ||||
* | kex: server fix for first_kex_packet_follows | Jon Simons | 2014-04-10 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | Ensure to honor the 'first_kex_packet_follow' field when processing KEXINIT messages in the 'ssh_packet_kexinit' callback. Until now libssh would assume that this field is always unset (zero). But some clients may set this (dropbear at or beyond version 2013.57), and it needs to be included when computing the session ID. Also include logic for handling wrongly-guessed key exchange algorithms. Save whether a client's guess is wrong in a new field in the session struct: when set, the next KEX_DHINIT message to be processed will be ignored per RFC 4253, 7.1. While here, update both 'ssh_packet_kexinit' and 'make_sessionid' to use softabs with a 4 space indent level throughout, and also convert various error-checking to store intermediate values into an explicit 'rc'. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | server: silence build warning | Luka Perkov | 2014-03-12 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | The commit fixes this build warning: ==== src/server.c:223:8: warning: ‘privkey’ may be used uninitialized in this function [-Wmaybe-uninitialized] rc = ssh_pki_export_privkey_to_pubkey(*privkey, &pubkey); ^ src/server.c:243:11: note: ‘privkey’ was declared here ssh_key privkey; ==== Signed-off-by: Luka Perkov <luka.perkov@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | src: Rename buffer_init to ssh_buffer_init(). | Andreas Schneider | 2014-01-19 | 1 | -3/+3 |
| | |||||
* | update copyright information | Aris Adamantiadis | 2014-01-07 | 1 | -1/+1 |
| | |||||
* | server: Add a ssh_send_keepalive() function. | Nicolas Viennot | 2013-11-24 | 1 | -0/+41 |
| | | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | server: Fix malloc call. | Andreas Schneider | 2013-11-09 | 1 | -1/+1 |
| | |||||
* | kex: implement curve25519-sha256@libssh.org | Aris Adamantiadis | 2013-09-27 | 1 | -0/+6 |
| | |||||
* | src: Remove enter_function() and leave_function(). | Andreas Schneider | 2013-07-14 | 1 | -14/+5 |
| | |||||
* | src: Migrate to SSH_LOG. | Andreas Schneider | 2013-07-14 | 1 | -20/+20 |
| | |||||
* | Server: fix rekeying | Aris Adamantiadis | 2013-07-13 | 1 | -21/+25 |
| | |||||
* | Doc: fix a few broken parameters | Aris Adamantiadis | 2013-07-13 | 1 | -2/+2 |
| | | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | server: move message-specific call to ssh_* | Aris Adamantiadis | 2013-07-13 | 1 | -17/+40 |
| | | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | server: Fix a double free. | Andreas Schneider | 2013-06-13 | 1 | -4/+1 |
| | |||||
* | Fix an invalid strlen comparison in ssh_message_auth_reply_default | Andrew Collins | 2012-12-19 | 1 | -1/+1 |
| | | | | | | | | | During the transition to strncat in ssh_message_auth_reply_default, an invalid strlen comparison was added which causes the function to fail whenever it's called. Signed-off-by: Andrew Collins <bsderandrew@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | kex: Use getter functions to access kex arrays. | Andreas Schneider | 2012-10-12 | 1 | -1/+1 |
| | | | | This should fix the build on OpenIndiana. | ||||
* | server: Use strncat instead of strcat. | Andreas Schneider | 2012-10-12 | 1 | -4/+12 |
| | | | | | | This is just hardening the code. Found by Coverity. | ||||
* | server: Don't leak memory on calling ssh_string_from_char(). | Andreas Schneider | 2012-10-12 | 1 | -8/+32 |
| | | | | | | Also check the return values. Found by Coverity. | ||||
* | server: Fix for loop to free server methods. | Andreas Schneider | 2012-10-12 | 1 | -1/+1 |
| | | | | Found by Coverity. | ||||
* | server: Removed unused variable keytype in the ecdsa case. | Andreas Schneider | 2012-10-07 | 1 | -2/+0 |
| | |||||
* | dh: Add support for diffie-hellman-group14-sha1. | Dmitriy Kuznetsov | 2012-09-04 | 1 | -0/+1 |
| | |||||
* | server: Add ecdsa hostkey support. | Andreas Schneider | 2012-02-19 | 1 | -12/+43 |
| | |||||
* | session: Use a struct for all options. | Andreas Schneider | 2012-02-05 | 1 | -4/+4 |
| | |||||
* | kex: Fix some build warnings. | Andreas Schneider | 2011-11-10 | 1 | -2/+1 |
| | |||||
* | Fix warning | Aris Adamantiadis | 2011-09-24 | 1 | -0/+1 |
| | |||||
* | Fix bugs found by clang | Aris Adamantiadis | 2011-09-23 | 1 | -0/+2 |
| | |||||
* | priv: Move kex functions to kex header. | Andreas Schneider | 2011-09-18 | 1 | -1/+1 |
| | |||||
* | priv: Move options and config prototypes to own header. | Andreas Schneider | 2011-09-18 | 1 | -0/+1 |
| | |||||
* | server: split dh_handsake_server | Aris Adamantiadis | 2011-09-18 | 1 | -33/+44 |
| | |||||
* | kex: moved KEX structures to ssh_crypto_struct | Aris Adamantiadis | 2011-09-18 | 1 | -2/+2 |
| | |||||
* | kex: have server_kex use the elected methods | Aris Adamantiadis | 2011-09-18 | 1 | -1/+2 |
| | |||||
* | kex: split key selection and sending | Aris Adamantiadis | 2011-09-18 | 1 | -22/+37 |
| | |||||
* | session: Use defines for ssh_handle_packets(). | Andreas Schneider | 2011-09-17 | 1 | -1/+1 |
| | |||||
* | server: Fix some build warnings. | Andreas Schneider | 2011-09-11 | 1 | -2/+2 |
| | |||||
* | server: Fix compiler warning. | Andreas Schneider | 2011-09-11 | 1 | -2/+3 |
| | |||||
* | Update libssh to ssh_handle_packets_termination | Aris Adamantiadis | 2011-09-02 | 1 | -15/+21 |
| | | | | | | | | | | | cherry-picked from 0cb5248 Should resolve all timeout problems Conflicts: src/auth.c src/channels.c | ||||
* | pki: Use consistent API for ssh_pki_export_privkey_to_pubkey(). | Andreas Schneider | 2011-08-30 | 1 | -2/+2 |
| | |||||
* | pki: Use consistent API for ssh_pki_export_pubkey_blob(). | Andreas Schneider | 2011-08-30 | 1 | -4/+5 |
| | |||||
* | keyfiles: Remove keyfiles.h. | Andreas Schneider | 2011-08-28 | 1 | -1/+0 |
| | |||||
* | auth: Prefix kbdint functions. | Andreas Schneider | 2011-08-25 | 1 | -7/+7 |
| | |||||
* | server: Fix a build warning. | Andreas Schneider | 2011-08-23 | 1 | -1/+1 |
| | | | | Thanks to Tom Judge. | ||||
* | server: Migrate more functions to new pki. | Andreas Schneider | 2011-08-22 | 1 | -10/+30 |
| | |||||
* | server: Migrate hostkey check to new pki. | Andreas Schneider | 2011-08-22 | 1 | -2/+4 |
| | |||||
* | server: Use new pki infrastructure. | Andreas Schneider | 2011-08-22 | 1 | -29/+30 |
| | |||||
* | session: Fix timeout handling. | rofl0r | 2011-08-06 | 1 | -1/+1 |
| | | | | | -2 now means to use the timeout specified in options. It wasn't used earlier and poll only knows -1 and 0 anyway for special meanings. | ||||
* | Fixes the ssh_log issue on ssh_bind handles. | Aris Adamantiadis | 2011-07-19 | 1 | -2/+2 |
| | |||||
* | Implemented X11 server side | milo | 2011-04-14 | 1 | -0/+16 |
| |