Jon Simons
54f89af6d3
bind: fix leak in ssh_bind_accept error path
...
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-24 10:37:59 +02:00
Colin Walters
5eeadf533f
auth: docs: Fix typo optoins -> options
...
I'm just getting my feet wet with this codebase.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-10-23 09:55:39 +02:00
Andreas Schneider
a62399fcd5
channel: Reinit the buffer and reset the state on error.
...
BUG: https://red.libssh.org/issues/126
2013-10-20 12:47:17 +02:00
Andreas Schneider
0ee68ac2a1
channel: Fix ssh_global_request_termination().
...
BUG: https://red.libssh.org/issues/126
2013-10-20 12:47:16 +02:00
Andreas Schneider
b5f71f35a3
pki: Don't leak a buffer.
2013-10-19 10:42:18 +02:00
Andreas Schneider
beeca3c650
pki_crpypto: Fix ecdsa signature to blob.
...
BUG: https://red.libssh.org/issues/118
2013-10-18 23:50:09 +02:00
Andreas Schneider
9f5abdb526
pki: Add support for ECDSA private key signing.
2013-10-18 23:50:08 +02:00
Andreas Schneider
02f80eb288
pki: Add the type as a char pointer.
2013-10-18 23:50:08 +02:00
Andreas Schneider
5b7f07b484
wrapper: Add more evp functions.
2013-10-18 23:50:06 +02:00
Andreas Schneider
ec5278e34d
client: Fix the build.
2013-10-18 21:19:33 +02:00
Oliver Stöneberg
e554f0dc0d
scp: Fixed result of ssh_scp_string_mode() to get SCP working.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-10-18 14:59:01 +02:00
Oliver Stöneberg
e8e1916d2e
client: Added a missing NULL pointer check.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-10-18 14:58:59 +02:00
Andreas Schneider
29b3a94032
channel: Fix packets termination timeout in global_request().
...
BUG: https://red.libssh.org/issues/126
2013-10-01 14:51:55 +02:00
Andreas Schneider
8f2b26a837
session: Try the ecdsa default key first.
2013-10-01 14:48:20 +02:00
Andreas Schneider
42c07f379d
channels: Correctly handle timeouts in channel functions.
2013-10-01 14:47:58 +02:00
Andreas Schneider
f79c4fd7a3
channel: Use the correct timeout option in channel_open().
...
BUG: https://red.libssh.org/issues/124
2013-10-01 14:47:58 +02:00
Andreas Schneider
9f60352497
session: Document return value of ssh_get_serverbanner().
...
BUG: https://red.libssh.org/issues/122
2013-10-01 14:47:58 +02:00
Andreas Schneider
70c796e8b8
session: Remove obsolete status variables.
...
BUG: https://red.libssh.org/issues/121
2013-10-01 14:47:57 +02:00
Andreas Schneider
5b7a696cf2
client: Add example code for ssh_get_openssh_version().
...
BUG: https://red.libssh.org/issues/120
2013-10-01 14:47:57 +02:00
Andreas Schneider
c59568c3c1
channels: Correctly decrement timeout value in ssh_channel_accept().
...
BUG: https://red.libssh.org/issues/116
2013-10-01 14:47:57 +02:00
Andreas Schneider
6f10422685
channel: Document SSH_AGAIN in ssh_channel_read().
...
BUG: https://red.libssh.org/issues/115
2013-10-01 14:47:57 +02:00
Andreas Schneider
3d158fffa0
doc: Improve the PKI documentation a bit.
2013-10-01 14:47:57 +02:00
Andreas Schneider
c8be0201c6
doc: Update documentation of ssh_set_blocking().
...
This should work correctly in libssh 0.6.0. If not then you hit a bug.
2013-10-01 14:47:57 +02:00
Tristan CACQUERAY
a8969c4be6
callbacks: add support for auth_none_function
2013-09-27 16:06:09 +02:00
Aris Adamantiadis
666db37e21
kex: implement curve25519-sha256@libssh.org
2013-09-27 16:06:09 +02:00
Andreas Schneider
391bd88355
scp: Document more scp functionts.
2013-08-12 11:25:15 +02:00
Nicolas Viennot
af99a4dc05
server kex: Fix server side compression typo
...
The original code had a typo (COMP was CRYPT). This fixes the zlib compression
method.
Signed-off-by: Nicolas Viennot <nicolas@viennot.biz >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-08-05 18:27:23 +02:00
Andreas Schneider
6efa55d154
session: Add parentheses to fix a build warning.
2013-07-26 07:50:37 +02:00
Andreas Schneider
f9b8395122
session: Handle session state in ssh_get_status().
...
BUG: https://red.libssh.org/issues/109
2013-07-25 22:43:09 +02:00
Nicolas Viennot
cdf193d8b5
session: ssh_handle_packets_termination() SSH_AGAIN bug fix
...
ssh_handle_packets_termination() must not return SSH_OK when exiting due to
a timeout while the termination function still returns 1.
Signed-off-by: Nicolas Viennot <nicolas@viennot.biz >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-07-25 22:35:03 +02:00
Nicolas Viennot
2f674aeec1
channels: allow channel_open() to return SSH_AGAIN
...
Signed-off-by: Nicolas Viennot <nicolas@viennot.biz >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-07-25 22:34:51 +02:00
Andreas Schneider
38420bff76
gssapi: Fix a build warning if we build without server support.
2013-07-25 10:01:38 +02:00
Andreas Schneider
5ba88f01e8
cmake: Rewrote FindGSSAPI.cmake.
2013-07-24 20:48:14 +02:00
Andreas Schneider
6a83f9a044
gssapi: Fix include with Heimdal.
2013-07-24 20:41:41 +02:00
Andreas Schneider
e1280ce153
gssapi: Fix a memory leak in ssh_gssapi_auth_mic().
...
CID: 1046708
2013-07-23 12:27:55 +02:00
Andreas Schneider
11c45b0f55
callbacks: Fix value assigning.
...
CID: 1046709
2013-07-23 12:25:18 +02:00
Andreas Schneider
df81a05505
cmake: Check for unistd.h.
2013-07-23 10:44:51 +02:00
Andreas Schneider
dbf3cdecda
auth: Fix build warning if we don't build with gssapi.
2013-07-22 13:01:36 +02:00
Andreas Schneider
35d0c3a860
connect: Fix a build warning on Windows.
2013-07-22 13:01:36 +02:00
Andreas Schneider
229ef082c1
scp: Cast return value from uint64_t to size_t.
2013-07-22 13:01:36 +02:00
Andreas Schneider
da1eaea51a
gassapi: Fix check if it is enabled.
2013-07-22 10:42:30 +02:00
Andreas Schneider
329f4da1e1
options: Fix compiler warning on Windows.
2013-07-22 10:42:30 +02:00
Andreas Schneider
08c31ccf31
error: Fix logging in ssh_set_error().
2013-07-21 11:26:55 +02:00
Andreas Schneider
f3e09612b3
options: Set log level through options too.
2013-07-21 11:26:32 +02:00
Andreas Schneider
d1bbc35f33
gssapi: Add brackets in ssh_packet_userauth_gssapi_mic().
2013-07-21 11:03:00 +02:00
Andreas Schneider
f458055e9c
gssapi: Cleanup ssh_gssapi_set_creds().
2013-07-21 10:58:30 +02:00
Andreas Schneider
4103358daa
gssapi: Replace printf with SSH_LOG.
2013-07-21 10:56:47 +02:00
Andreas Schneider
1ab4b28b00
messages: Split ssh_execute_server_callbacks() in small functions.
2013-07-21 10:53:18 +02:00
Andreas Schneider
461988b153
session: Add brackets to ssh_handle_packets_termination().
2013-07-21 10:35:18 +02:00
Andreas Schneider
c4937cedea
misc: Use the szPath variable instead of calling getenv.
2013-07-16 13:36:52 +02:00