Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add negotiation for SHA2 HMAC algorithms | Dirkjan Bussink | 2014-04-22 | 1 | -4/+4 |
| | | | | | | BUG: https://red.libssh.org/issues/91 Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | kex: server fix for first_kex_packet_follows | Jon Simons | 2014-04-22 | 1 | -64/+151 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -149/+64 |
| | | | | | | 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 | -64/+149 |
| | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | kex: enable more ECDSA hostkey algos | Jon Simons | 2014-03-27 | 1 | -1/+1 |
| | | | | | Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | knownhosts: resolve leaks found by coverity | Aris Adamantiadis | 2014-02-05 | 1 | -1/+3 |
| | |||||
* | knownhosts: detect variations of ecdsa | Aris Adamantiadis | 2014-02-04 | 1 | -23/+49 |
| | |||||
* | Kex: fix coverity warning + edge case | Aris Adamantiadis | 2014-02-02 | 1 | -4/+8 |
| | |||||
* | Knownhosts: implement hostkey with knownhosts heuristic | Aris Adamantiadis | 2014-02-01 | 1 | -1/+24 |
| | |||||
* | src: Rename buffer_add_data() to ssh_buffer_add_data(). | Andreas Schneider | 2014-01-19 | 1 | -1/+1 |
| | |||||
* | src: Rename buffer_init to ssh_buffer_init(). | Andreas Schneider | 2014-01-19 | 1 | -2/+2 |
| | |||||
* | kex: implement curve25519-sha256@libssh.org | Aris Adamantiadis | 2013-09-27 | 1 | -2/+12 |
| | |||||
* | src: Remove enter_function() and leave_function(). | Andreas Schneider | 2013-07-14 | 1 | -16/+4 |
| | |||||
* | src: Migrate to SSH_LOG. | Andreas Schneider | 2013-07-14 | 1 | -4/+4 |
| | |||||
* | kex: Fix a double free. | Andreas Schneider | 2013-06-13 | 1 | -0/+1 |
| | |||||
* | Implement key re-exchange | Aris Adamantiadis | 2012-12-23 | 1 | -1/+4 |
| | |||||
* | kex: Use getter functions to access kex arrays. | Andreas Schneider | 2012-10-12 | 1 | -4/+20 |
| | | | | This should fix the build on OpenIndiana. | ||||
* | kex: Don't compare an array to null. | Andreas Schneider | 2012-10-12 | 1 | -4/+4 |
| | | | | Found by Coverity. | ||||
* | kex: Fix supported methods index. | Andreas Schneider | 2012-10-07 | 1 | -5/+4 |
| | |||||
* | kex: Fix simpledes with gcrypt. | Andreas Schneider | 2012-09-25 | 1 | -21/+21 |
| | |||||
* | kex: Add simple DES support for SSHv1. | Dmitriy Kuznetsov | 2012-09-07 | 1 | -0/+2 |
| | |||||
* | dh: Add support for diffie-hellman-group14-sha1. | Dmitriy Kuznetsov | 2012-09-04 | 1 | -2/+4 |
| | |||||
* | session: Use a struct for all options. | Andreas Schneider | 2012-02-05 | 1 | -1/+1 |
| | |||||
* | pki: Make a strcmp better readable. | Andreas Schneider | 2012-02-04 | 1 | -1/+1 |
| | |||||
* | kex: Add support for ecdsa hostkeys. | Andreas Schneider | 2012-02-04 | 1 | -2/+4 |
| | |||||
* | kex: Add a define for the kex method size. | Andreas Schneider | 2012-02-04 | 1 | -16/+19 |
| | |||||
* | kex: Fix some build warnings. | Andreas Schneider | 2011-11-10 | 1 | -1/+1 |
| | |||||
* | build: Fix zlib support. | Andreas Schneider | 2011-09-23 | 1 | -1/+1 |
| | |||||
* | gzip: Fix zlib support. | Andreas Schneider | 2011-09-18 | 1 | -1/+1 |
| | |||||
* | priv: Move kex functions to kex header. | Andreas Schneider | 2011-09-18 | 1 | -5/+5 |
| | |||||
* | kex: moved KEX structures to ssh_crypto_struct | Aris Adamantiadis | 2011-09-18 | 1 | -18/+19 |
| | |||||
* | kex: split key selection and sending | Aris Adamantiadis | 2011-09-18 | 1 | -42/+39 |
| | |||||
* | kex: Fix includes. | Andreas Schneider | 2011-09-11 | 1 | -4/+0 |
| | |||||
* | kex: Split out SSHv1 functions to kex1.c. | Andreas Schneider | 2011-09-10 | 1 | -436/+2 |
| | |||||
* | kex: Move ssh_encrypt_rsa1 to SSHv1 kex code. | Andreas Schneider | 2011-08-22 | 1 | -0/+66 |
| | |||||
* | session: Fix timeout handling. | rofl0r | 2011-08-06 | 1 | -2/+2 |
| | | | | | -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. | ||||
* | [crypto] initial support for ecdh-sha2-nistp256 | Aris Adamantiadis | 2011-06-13 | 1 | -3/+15 |
| | | | | | Works with openssl Still requires work for libgcrypt and other modes | ||||
* | Fix assertion with Visual Studio because of %zu. | Andreas Schneider | 2011-04-15 | 1 | -1/+1 |
| | |||||
* | All error path consistent with ssh_packet_kexinit | Aris Adamantiadis | 2011-01-10 | 1 | -4/+6 |
| | |||||
* | Fix free() on uninitialized data on some cases. | Aris Adamantiadis | 2010-12-19 | 1 | -2/+1 |
| | |||||
* | Implemented zlib@openssh.com compression | Aris Adamantiadis | 2010-10-04 | 1 | -1/+1 |
| | |||||
* | misc: Rename libssh/ to src/ | Andreas Schneider | 2010-09-06 | 1 | -0/+835 |