Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dh: Fix packing a pointer into the buffer. | Andreas Schneider | 2014-08-25 | 1 | -2/+2 |
| | | | | | | Thanks to Giovanni Panozzo <giovanni@panozzo.it>. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | bignums: detach bignum-related functions from dh.c. | Aris Adamantiadis | 2014-08-06 | 1 | -70/+1 |
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> | ||||
* | buffer: adapt dh.c to new ssh_buffer_(un)pack() | Aris Adamantiadis | 2014-08-06 | 1 | -96/+40 |
| | | | | Reviewed-by: Andreas Schneider <asn@samba.org> | ||||
* | Add logic to support SHA2 HMAC algorithms | Dirkjan Bussink | 2014-04-22 | 1 | -59/+53 |
| | | | | | | 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 | -171/+187 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -187/+171 |
| | | | | | | 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 | -171/+187 |
| | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | dh: Fix NULL check for p_group14. | Rod Vagg | 2014-01-23 | 1 | -1/+1 |
| | | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | src: Rename buffer_add_data() to ssh_buffer_add_data(). | Andreas Schneider | 2014-01-19 | 1 | -11/+11 |
| | |||||
* | src: Rename buffer_init to ssh_buffer_init(). | Andreas Schneider | 2014-01-19 | 1 | -5/+5 |
| | |||||
* | src: Update my mail address. | Andreas Schneider | 2014-01-07 | 1 | -1/+1 |
| | |||||
* | update copyright information | Aris Adamantiadis | 2014-01-07 | 1 | -2/+2 |
| | |||||
* | dh: Fix wrong assignment. | Andreas Schneider | 2013-11-14 | 1 | -1/+1 |
| | | | | Ups, sorry. | ||||
* | dh: Avoid possible memory leaks with realloc. | Andreas Schneider | 2013-11-09 | 1 | -4/+13 |
| | |||||
* | dh: Move ssh_get_hexa() and ssh_print_hexa() down. | Andreas Schneider | 2013-11-06 | 1 | -57/+57 |
| | | | | | This way they are in the documentation block for the session and we get documentation for them. | ||||
* | dh: Add new ssh_get_publickey_hash() function. | Andreas Schneider | 2013-11-06 | 1 | -19/+102 |
| | |||||
* | kex: implement curve25519-sha256@libssh.org | Aris Adamantiadis | 2013-09-27 | 1 | -0/+13 |
| | |||||
* | src: Remove enter_function() and leave_function(). | Andreas Schneider | 2013-07-14 | 1 | -9/+1 |
| | |||||
* | src: Migrate to SSH_LOG. | Andreas Schneider | 2013-07-14 | 1 | -2/+2 |
| | |||||
* | Server: fix rekeying | Aris Adamantiadis | 2013-07-13 | 1 | -1/+1 |
| | |||||
* | DH: fix rekeying when using aes256 and bigger | Aris Adamantiadis | 2013-07-13 | 1 | -2/+2 |
| | |||||
* | dh: Check return value of buffer_add_ssh_string(). | Andreas Schneider | 2013-06-17 | 1 | -2/+8 |
| | |||||
* | Implement key re-exchange | Aris Adamantiadis | 2012-12-23 | 1 | -10/+22 |
| | |||||
* | CVE-2012-4562: Fix possible integer overflow in ssh_get_hexa(). | Xi Wang | 2012-11-14 | 1 | -0/+5 |
| | | | | No exploit known, but it is better to check the string length. | ||||
* | dh: Don't use strcat for ssh_get_hexa(). | Andreas Schneider | 2012-10-12 | 1 | -9/+8 |
| | | | | | | This is just hardening the code. Found by Coverity. | ||||
* | dh: Don't leak 'f' on error. | Andreas Schneider | 2012-10-12 | 1 | -5/+6 |
| | | | | Found by Coverity. | ||||
* | dh: Fix dh_generate_e() with gcrypt. | Andreas Schneider | 2012-09-25 | 1 | -1/+1 |
| | |||||
* | dh: Add support for diffie-hellman-group14-sha1. | Dmitriy Kuznetsov | 2012-09-04 | 1 | -19/+82 |
| | |||||
* | build: Fix missing struct in_addr warning. | Andreas Schneider | 2012-07-17 | 1 | -0/+1 |
| | |||||
* | dh: Add a doc hint to ssh_string_free_char() for ssh_get_hexa(). | Andreas Schneider | 2012-06-11 | 1 | -0/+2 |
| | |||||
* | dh: Fix build with DEBUG_CRYPTO. | Andreas Schneider | 2012-02-05 | 1 | -3/+5 |
| | |||||
* | dh: Add ssh_get_publickey(). | Andreas Schneider | 2011-10-29 | 1 | -6/+23 |
| | |||||
* | doc: Improve doc of ssh_get_pubkey_hash(). | Andreas Schneider | 2011-10-04 | 1 | -0/+4 |
| | |||||
* | kex: moved KEX structures to ssh_crypto_struct | Aris Adamantiadis | 2011-09-18 | 1 | -2/+2 |
| | |||||
* | dh: fix segfault in server | Aris Adamantiadis | 2011-09-18 | 1 | -2/+7 |
| | |||||
* | dh: Use ssh_string_new() in make_bignum_string(). | Andreas Schneider | 2011-09-08 | 1 | -5/+9 |
| | |||||
* | string: Use the struct and array for allocating the struct. | Andreas Schneider | 2011-09-08 | 1 | -7/+7 |
| | |||||
* | keys: Remove keys.h where it is obsolete. | Andreas Schneider | 2011-08-30 | 1 | -1/+0 |
| | |||||
* | dh: Remove obsolete signature functions. | Andreas Schneider | 2011-08-22 | 1 | -140/+0 |
| | |||||
* | misc: Add ssh_match_group(). | Andreas Schneider | 2011-08-22 | 1 | -25/+2 |
| | |||||
* | Fix build with missing openssl/ecdh.h | Aris Adamantiadis | 2011-06-14 | 1 | -2/+4 |
| | |||||
* | [crypto] initial support for ecdh-sha2-nistp256 | Aris Adamantiadis | 2011-06-13 | 1 | -85/+164 |
| | | | | | Works with openssl Still requires work for libgcrypt and other modes | ||||
* | Moved DH specific code to dh.h | Aris Adamantiadis | 2011-06-12 | 1 | -1/+43 |
| | |||||
* | init: Some initialization fixes. | Oliver Stöneberg | 2011-05-01 | 1 | -1/+7 |
| | | | | | | | | - Check result of ssh_init() in privatekey_from_base64() - Moved code from ssh_finalize() to appropriate subroutines - Only initialize sockets once (caused mismatch of WSAStartup() and WSACleanup() calls and potential usage of bsd_poll when win_poll should be used) | ||||
* | dh: Fixed a memory leak in ssh_print_hexa. | Andreas Schneider | 2011-01-06 | 1 | -0/+2 |
| | | | | Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/ | ||||
* | Fixed a bunch of smallish bugs | Aris Adamantiadis | 2010-10-20 | 1 | -3/+8 |
| | | | | | http://linuxtesting.org/upstream-tracker/test_results/libssh/current/test_results.html for a whole list | ||||
* | Removed references to ssh_buffer_get_begin | Aris Adamantiadis | 2010-10-03 | 1 | -7/+7 |
| | |||||
* | misc: Rename libssh/ to src/ | Andreas Schneider | 2010-09-06 | 1 | -0/+1049 |