| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Import keys during ssh_bind_accept_fd | Alan Dunn | 2014-01-21 | 1 | -1/+11 |
| | | | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
| * | Separate out key import functionality from ssh_bind_listen | Alan Dunn | 2014-01-21 | 1 | -12/+23 |
| | | | | | | Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
| * | 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> | ||||
| * | bind: Correctly free all memory in ssh_bind_free(). | Andreas Schneider | 2013-12-09 | 1 | -3/+7 |
| | | | | | Thanks to Jacob Baines. | ||||
| * | bind: fix leak in ssh_bind_accept error path | Jon Simons | 2013-10-24 | 1 | -2/+1 |
| | | | | | | Use 'ssh_socket_free' to cleanup if 'ssh_bind_accept_fd' fails, to be sure to free the ssh_socket in/out buffers. | ||||
| * | log: Implment new logging functions. | Andreas Schneider | 2013-07-14 | 1 | -1/+1 |
| | | |||||
| * | bind: ssh_pki functions also return SSH_EOF error code | Aris Adamantiadis | 2013-07-13 | 1 | -3/+3 |
| | | | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org> | ||||
| * | BUG 97: Remove obsolete hsterror(). | Andreas Schneider | 2012-12-03 | 1 | -12/+1 |
| | | | | | | | This function is pretty much obsolete on most platforms. The standard errno should be used. If it is not enough on Windows we should use WSAGetLastError() in future. | ||||
| * | bind: Fix build. | Andreas Schneider | 2012-05-09 | 1 | -1/+2 |
| | | |||||
| * | server: Add ecdsa hostkey support. | Andreas Schneider | 2012-05-08 | 1 | -1/+1 |
| | | |||||
| * | server: Add ecdsa hostkey support. | Andreas Schneider | 2012-02-19 | 1 | -1/+34 |
| | | |||||
| * | session: Use a struct for all options. | Andreas Schneider | 2012-02-05 | 1 | -6/+6 |
| | | |||||
| * | bind: Add more error messages. | Andreas Schneider | 2011-11-09 | 1 | -1/+9 |
| | | |||||
| * | bind: Fix ssh_bind_listen in normal case. | Andreas Schneider | 2011-10-17 | 1 | -5/+6 |
| | | |||||
| * | server: use app-provided bind socket when available | Aris Adamantiadis | 2011-10-13 | 1 | -17/+19 |
| | | |||||
| * | server: ssh_bind_accept_fd | Aris Adamantiadis | 2011-10-13 | 1 | -52/+70 |
| | | | | | | This function will not call accept() but use function parameter instead | ||||
| * | error: Use macros for error functions. | Andreas Schneider | 2011-09-17 | 1 | -1/+1 |
| | | |||||
| * | server: Use new pki infrastructure. | Andreas Schneider | 2011-08-22 | 1 | -28/+4 |
| | | |||||
| * | pki: Remove session from ssh_pki_import_privkey_* functions. | Andreas Schneider | 2011-08-16 | 1 | -2/+10 |
| | | |||||
| * | bind: Add checks around key functions. | Andreas Schneider | 2011-08-15 | 1 | -6/+31 |
| | | |||||
| * | bind: Read only once in ssh_bind_listen() (bug #11). | Andreas Schneider | 2011-08-15 | 1 | -44/+50 |
| | | |||||
| * | pki: Use a consistent name scheme. | Andreas Schneider | 2011-08-09 | 1 | -2/+2 |
| | | | | | Rename ssh_key_import_private to ssh_pki_import_privkey_file. | ||||
| * | bind: Use ssh_key_import_private(). | Andreas Schneider | 2011-08-08 | 1 | -22/+37 |
| | | |||||
| * | Fixes the ssh_log issue on ssh_bind handles. | Aris Adamantiadis | 2011-07-19 | 1 | -3/+3 |
| | | |||||
| * | doc: Improve the doc of ssh_bind_set_callbacks. | Andreas Schneider | 2011-03-09 | 1 | -19/+0 |
| | | |||||
| * | bind: Set errors on return. | Bernhard R. Link | 2011-02-14 | 1 | -1/+8 |
| | | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> | ||||
| * | bind: Added include file for close function on Windows. | Andreas Schneider | 2011-01-02 | 1 | -0/+1 |
| | | |||||
| * | server: Added missing include files for getaddrinfo on Windows. | Andreas Schneider | 2010-12-29 | 1 | -1/+10 |
| | | |||||
| * | server: Replace gethostbyname() with getaddrinfo(). | Andreas Schneider | 2010-12-27 | 1 | -43/+56 |
| | | | | | Fixes rlo#13. | ||||
| * | Moved includes from priv.h to bind.h | Aris Adamantiadis | 2010-10-27 | 1 | -0/+1 |
| | | |||||
| * | Split ssh_bind functions in a new .c file | Aris Adamantiadis | 2010-10-20 | 1 | -0/+372 |
