aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-11-03examples: fix forktty() warning on OSXAris Adamantiadis3-1/+7
2013-11-03Fix examples compilation on OSX (libargp)Aris Adamantiadis3-3/+9
2013-11-03Compile libssh with nacl if possibleAris Adamantiadis4-2/+77
Conflicts: DefineOptions.cmake
2013-11-03socket: Fix check for pending data.Aris Adamantiadis2-4/+8
BUG: https://red.libssh.org/issues/119 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-03server: Fix ssh_execute_server_callbacks() client executionNicolas Viennot1-4/+2
When the public key auth handler is executed and returns SSH_OK, ssh_execute_server_callbacks() still runs some client callbacks, which may set rc to SSH_AGAIN, which triggers a default reply on auth, denying auth. Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-03server kex: enable delayed compressionNicolas Viennot1-4/+14
The code is careful to reenable compression when rekeying. Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-03session: Make sure we correctly burn the buffer.Andreas Schneider1-1/+1
2013-11-03wrapper: Make sure we really burn the buffer.Andreas Schneider1-1/+1
2013-11-03priv: Fix brackets of burn macros.Andreas Schneider1-2/+2
2013-11-03doc: Add missing RFCs.Andreas Schneider1-0/+8
2013-11-02server: fix pubkey reply for key probesJon Simons1-1/+9
Per RFC 4252, it is required to send back only one of either SSH_MSG_USERAUTH_PK_OK or SSH_MSG_USERAUTH_FAILURE for public key probes. Update the handling of 'auth_pubkey_function' to send back PK_OK instead of SSH_MSG_USERAUTH_SUCCESS for the case that the state of the message at hand is SSH_PUBLICKEY_STATE_NONE. With this change, it is now possible to process an initial key probe and then subsequent signature validation using the server callbacks. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-02ssh_options_get can now return ProxyCommandWilliam Orr1-0/+9
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-31connect: fix memory leak in ssh_selectJon Simons1-2/+9
Balance 'ssh_event_add_fd' with 'ssh_event_remove_fd' in 'ssh_select'. BUG: https://red.libssh.org/issues/128 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-31tests: Add a test for ssh_channel().Andreas Schneider2-0/+50
2013-10-31poll: fix leak in ssh_poll_ctx_freeJon Simons1-1/+5
Fix a memory leak in 'ssh_poll_ctx_free': issue 'ssh_poll_free' to remove the poll handle from its context and free it. BUG: https://red.libssh.org/issues/128 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-31SSH_AUTH_OK -> SSH_AUTH_SUCCESS in commentsAlan Dunn1-4/+4
A few callback descriptions refer to a non-existent value SSH_AUTH_OK, which should be SSH_AUTH_SUCCESS. This commit fixes these. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-30cmake: Check for isblank().Andreas Schneider3-1/+7
2013-10-24bind: fix leak in ssh_bind_accept error pathJon Simons1-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.
2013-10-23tests: Add a sftp_read blocking test.Andreas Schneider2-0/+84
2013-10-23auth: docs: Fix typo optoins -> optionsColin Walters1-6/+6
I'm just getting my feet wet with this codebase. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-23doc: Improve sftp_read_sync() example.Andreas Schneider1-44/+60
2013-10-21include: Fix build on platforms without ECC.Andreas Schneider1-0/+2
2013-10-20tests: Add a test for ssh_channel_request_env().Andreas Schneider2-0/+115
2013-10-20tests: We can't test the accept right now.Andreas Schneider1-1/+5
2013-10-20tests: Fix torture_forward.Andreas Schneider1-3/+4
2013-10-20channel: Reinit the buffer and reset the state on error.Andreas Schneider1-23/+46
BUG: https://red.libssh.org/issues/126
2013-10-20channel: Fix ssh_global_request_termination().Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/126
2013-10-20tests: Add torture forward test.Andreas Schneider2-0/+90
2013-10-19pki: Don't leak a buffer.Andreas Schneider1-0/+2
2013-10-19wrapper: Fix compilation with gcrypt.Andreas Schneider1-0/+1
2013-10-18pki_crpypto: Fix ecdsa signature to blob.Andreas Schneider1-12/+26
BUG: https://red.libssh.org/issues/118
2013-10-18pki: Add support for ECDSA private key signing.Andreas Schneider1-14/+34
2013-10-18pki: Add the type as a char pointer.Andreas Schneider3-2/+6
2013-10-18wrapper: Add more evp functions.Andreas Schneider3-0/+30
2013-10-18client: Fix the build.Andreas Schneider1-1/+0
2013-10-18scp: Fixed result of ssh_scp_string_mode() to get SCP working.Oliver Stöneberg1-1/+1
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-18client: Added a missing NULL pointer check.Oliver Stöneberg1-8/+13
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-10-14doc: Make sure we have the defines to build all docs.Andreas Schneider1-1/+1
2013-10-01channel: Fix packets termination timeout in global_request().Andreas Schneider1-1/+1
BUG: https://red.libssh.org/issues/126
2013-10-01session: Try the ecdsa default key first.Andreas Schneider1-0/+11
2013-09-27callbacks: add support for auth_none_functionTristan CACQUERAY1-0/+11
2013-09-27doc: Documentation of curve25519-sha256@libssh.orgAris Adamantiadis1-0/+119
2013-09-27kex: implement curve25519-sha256@libssh.orgAris Adamantiadis9-3/+401
2013-09-17channels: Correctly handle timeouts in channel functions.Andreas Schneider1-5/+14
2013-09-17channel: Use the correct timeout option in channel_open().Andreas Schneider1-1/+5
BUG: https://red.libssh.org/issues/124
2013-09-16callbacks: Improve the documentation of ssh_threads_set_callbacks().Andreas Schneider1-6/+11
BUG: https://red.libssh.org/issues/123
2013-09-16callbacks: Improve the documentation of ssh_threads_get_noop().Andreas Schneider1-3/+7
BUG: https://red.libssh.org/issues/123
2013-09-16session: Document return value of ssh_get_serverbanner().Andreas Schneider1-0/+3
BUG: https://red.libssh.org/issues/122
2013-09-16session: Remove obsolete status variables.Andreas Schneider2-9/+4
BUG: https://red.libssh.org/issues/121
2013-09-16client: Add example code for ssh_get_openssh_version().Andreas Schneider1-0/+8
BUG: https://red.libssh.org/issues/120