Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | doc: Fix channel documentation. | Andreas Schneider | 2014-01-17 | 1 | -31/+49 |
| | |||||
* | pki: Do not use deprecated string functions. | Andreas Schneider | 2014-01-17 | 1 | -1/+1 |
| | |||||
* | src: Do not use deprecated functions. | Andreas Schneider | 2014-01-16 | 9 | -35/+35 |
| | |||||
* | include: Mark functions as deprecated! | Andreas Schneider | 2014-01-16 | 1 | -45/+45 |
| | |||||
* | bind: fix possible double-frees in ssh_bind_free | Jon Simons | 2014-01-16 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure to explicitly set key pointers to NULL following the use of 'ssh_key_free' throughout bind.c. Before this change, a double free can happen via 'ssh_bind_free' as in this example callpath: // create an ssh_bind ssh_bind b = ssh_bind_new(); // provide a path to a wrong key-type ssh_bind_options_set(b, SSH_BIND_OPTIONS_DSAKEY, path_to_rsa_key); // initialize set key-type ssh_bind_listen(b); -> error path "The DSA host key has the wrong type: %d", ssh_key_free(sshbind->dsa) -> ssh_key_clean(key) // OK -> SAFE_FREE(key) // OK, but, sshbind->dsa is *not* set to NULL // ssh_bind_listen failed, so clean up ssh_bind ssh_bind_free(b); -> ssh_key_free(sshbind->dsa) // double-free here To fix, set pointers to NULL that have been free'd with 'ssh_key_free'. Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | doc: Add changes to the forwarding tutorial. | Andreas Schneider | 2014-01-16 | 1 | -5/+6 |
| | |||||
* | channel: Fix the name scheme of the forward functions. | Andreas Schneider | 2014-01-16 | 5 | -24/+40 |
| | |||||
* | channel: Add ssh_channel_accept_forward(). | Oleksandr Shneyder | 2014-01-16 | 2 | -3/+24 |
| | | | | | | | | This works same way as ssh_forward_accept() but can return a destination port of the channel (useful if SSH connection forwarding several TCP/IP ports). Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | Rename build directory to obj. | Andreas Schneider | 2014-01-16 | 3 | -2/+2 |
| | | | | | Some buildsystem use build in the pathname and so we will filter out e.g. docs generation. | ||||
* | threads: support libgcrypt 1.6 hack | Aris Adamantiadis | 2014-01-08 | 3 | -2/+26 |
| | | | | | | | Not 100% satisfied of this patch, but the way libgcrypt handles threading in 1.6 is not compatible with custom handlers. The new code basicaly uses pthreads in every case. This will probably not work on windows. | ||||
* | include: Remove warning cause VSC doesn't know about it. | Andreas Schneider | 2014-01-08 | 1 | -1/+0 |
| | |||||
* | include: Fix building if we do not have asm volatile. | Andreas Schneider | 2014-01-08 | 1 | -1/+2 |
| | |||||
* | src: Update my mail address. | Andreas Schneider | 2014-01-07 | 19 | -19/+19 |
| | |||||
* | cmake: Remove unused macro modules. | Andreas Schneider | 2014-01-07 | 5 | -108/+0 |
| | |||||
* | update copyright information | Aris Adamantiadis | 2014-01-07 | 20 | -26/+26 |
| | |||||
* | tests: avoid reading uninitialized bytes | Aris Adamantiadis | 2014-01-07 | 1 | -2/+2 |
| | |||||
* | pki: fix gcrypt signature process | Aris Adamantiadis | 2014-01-07 | 1 | -1/+1 |
| | |||||
* | examples: Make sure buffer is initialized. | Andreas Schneider | 2014-01-07 | 1 | -1/+1 |
| | |||||
* | example: Add missing include for forkpty(). | Andreas Schneider | 2014-01-07 | 1 | -0/+3 |
| | |||||
* | test: fixed torture_auth_none condition | Aris Adamantiadis | 2014-01-06 | 1 | -2/+2 |
| | |||||
* | test: test case for async auth_none | Aris Adamantiadis | 2014-01-06 | 1 | -0/+59 |
| | | | | This test currently fails | ||||
* | tests: auth_agent_nonblocking should run in nonblocking | Aris Adamantiadis | 2014-01-06 | 1 | -0/+2 |
| | |||||
* | tests: use LC_LIBSSH instead of LANG for env tests. | Aris Adamantiadis | 2014-01-06 | 1 | -2/+2 |
| | | | | | LANG is stripped and replaced on many distros and LC_* is accepted by default on debian | ||||
* | session: Fix a possible memory leak. | Andreas Schneider | 2014-01-05 | 1 | -0/+1 |
| | |||||
* | poll: fix poll_handles ownerships | Aris Adamantiadis | 2014-01-05 | 1 | -5/+27 |
| | |||||
* | socket: don't attempt reading a non-connected socket | Aris Adamantiadis | 2014-01-05 | 1 | -1/+1 |
| | |||||
* | examples: Fix building samplesshd-tty on FreeBSD. | Andreas Schneider | 2013-12-26 | 1 | -2/+2 |
| | |||||
* | poll: Correctly free ssh_event_fd_wrapper. | Andreas Schneider | 2013-12-22 | 1 | -3/+9 |
| | | | | This is allocated by ssh_event_add_fd. | ||||
* | config: Support expansion in the Host variable too. | Andreas Schneider | 2013-12-21 | 1 | -9/+18 |
| | | | | BUG: https://red.libssh.org/issues/127 | ||||
* | tests: Fix non-blocking auth tests. | Andreas Schneider | 2013-12-15 | 1 | -7/+15 |
| | | | | | | The ssh_userauth_none() call should already be non-blocking. However this this function is broken in non-blocking mode. It should reveal the existing bug. | ||||
* | tests: Fix blocking mode in password auth test. | Andreas Schneider | 2013-12-15 | 1 | -1/+1 |
| | |||||
* | tests: Use new auth API in the torture_session test. | Andreas Schneider | 2013-12-15 | 1 | -2/+3 |
| | |||||
* | tests: Use new auth API in the torture_auth test. | Andreas Schneider | 2013-12-15 | 1 | -10/+19 |
| | |||||
* | tests: Fix pki test with gcrypt. | Andreas Schneider | 2013-12-11 | 1 | -0/+4 |
| | |||||
* | channel: fix setting of channel->flags | Jon Simons | 2013-12-11 | 1 | -3/+3 |
| | | | | | | | | Fix the setting of 'channel->flags' to use '|='. Before this change, one bug symptom can be that channels are never fully free'd via ssh_channel_free, resulting in memory leaks. Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
* | client: use ssh_channel_do_free in ssh_disconnect | Jon Simons | 2013-12-11 | 1 | -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> | ||||
* | bind: Correctly free all memory in ssh_bind_free(). | Andreas Schneider | 2013-12-09 | 1 | -3/+7 |
| | | | | Thanks to Jacob Baines. | ||||
* | session: Add ssh_get_clientbanner(). | Jon Simons | 2013-12-07 | 2 | -0/+16 |
| | |||||
* | channels: Add a ssh_channel_read_timeout function. | Andreas Schneider | 2013-12-04 | 2 | -3/+44 |
| | |||||
* | tests: Try to fix torture_forward. | Andreas Schneider | 2013-12-04 | 1 | -4/+4 |
| | |||||
* | tests: Fix memory leaks. | Andreas Schneider | 2013-11-28 | 1 | -0/+9 |
| | |||||
* | tests: Add missing line breaks. | Andreas Schneider | 2013-11-28 | 1 | -2/+2 |
| | |||||
* | pki: Fix a memory leak. | Andreas Schneider | 2013-11-28 | 1 | -0/+1 |
| | | | | CID #1132819 | ||||
* | tests: Add torture_pki_write_privkey_ecdsa test. | Andreas Schneider | 2013-11-27 | 1 | -0/+44 |
| | |||||
* | tests: Add torture_pki_write_privkey_dsa test. | Andreas Schneider | 2013-11-27 | 1 | -0/+40 |
| | |||||
* | tests: Add torture_pki_write_privkey_rsa test. | Andreas Schneider | 2013-11-27 | 1 | -0/+40 |
| | |||||
* | pki: Add ssh_pki_import_privkey_file(). | Andreas Schneider | 2013-11-27 | 2 | -0/+63 |
| | |||||
* | pki_crypto: Add pki_private_key_to_pem(). | Andreas Schneider | 2013-11-27 | 1 | -0/+118 |
| | |||||
* | pki_gcrypt: Add pki_private_key_to_pem() stub. | Andreas Schneider | 2013-11-27 | 2 | -0/+18 |
| | |||||
* | curve25519: Fix memory leaks in ssh_server_curve25519_init(). | Andreas Schneider | 2013-11-27 | 1 | -20/+23 |
| | | | | CID #1125255 |