Andreas Schneider
de8808cb47
Fixed build with mingw.
2009-09-15 10:43:09 +02:00
Aris Adamantiadis
ca978a9e81
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
2009-09-14 23:19:11 +02:00
Aris Adamantiadis
ffca268bee
Add warning in channel_open_forward documentation
...
Tell users it does not do magic (yet)
2009-09-14 23:18:07 +02:00
Andreas Schneider
6a3d31acb7
Fix a possible stack overflow in agent code.
2009-09-14 19:01:20 +02:00
Aris Adamantiadis
f28352707a
Fix the security bug found by Orange Labs
...
Verify the length of decrypt operation is a multiple of blocksize
2009-09-13 22:07:01 +02:00
Aris Adamantiadis
4b363928f6
SCP warning request
2009-09-13 14:03:35 +03:00
Aris Adamantiadis
929f5ca25b
scp recursive mode
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
7ff80a2666
Add better error detection + EOF request
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
480dfd9050
add scp_download.c example
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
bdb32afa20
Cycle the fetchs, remove the ssh_connect function
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
f90ae73b6d
Refactored the connect_ssh example function
...
into a new file
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
7fed54b1e5
Fix scp pull bug + scp logging
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
d5840aa1f0
add support for local output, scp input
...
Still needs to be debugged and improved but the idea it there
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
6f2225e8fb
fix ssh_scp_string_mode() bug + debug msgs
2009-09-13 14:03:33 +03:00
Aris Adamantiadis
07a9e6b7c6
Change scp API to use integers for perms
2009-09-13 14:03:33 +03:00
Aris Adamantiadis
86e6444656
Begin of scp reading in example
2009-09-13 14:03:33 +03:00
Andreas Schneider
8ef62cf784
Fixed fstatvfs function.
2009-09-10 18:57:58 +02:00
Andreas Schneider
8051ab044c
Reformat lowercase function.
2009-09-10 14:37:09 +02:00
Dmitry V. Krivenok
18bce13617
Fixed possible memory leak in lowercase function.
...
If user passed NULL pointer to lowercase() function, duplicated
string "new" wasn't freed before return.
Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-09-10 14:35:02 +02:00
Dmitry V. Krivenok
2a10019f82
Fixed "var is uninitialized" bug.
...
gcc-4.4.1 reported:
/home/krivenok/dev_builds/libssh/libssh/sftp.c:2700: warning: 'sftp' is used uninitialized in this function
sftp is NULL-initialized now.
Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-09-10 12:35:11 +02:00
Dmitry V. Krivenok
df4c62212c
Support for sending signals (RFC 4254, section 6.9).
...
Added function
int channel_request_send_signal(ssh_channel channel, const char *signal);
which implements signals delivery (as described in RFC 4254).
Only SSH-v2 is currently supported.
Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-09-10 12:34:58 +02:00
Andreas Schneider
97b6036cbf
Add a portable ssh_mkdir function for Windows.
2009-09-09 13:42:00 +02:00
Andreas Schneider
df4f7ed5b8
Fix the free calls and use the safe free macro.
2009-09-03 17:22:34 +02:00
Andreas Schneider
0792c015d6
Add missing NULL pointer checks to crypt_set_algorithms_server.
...
Thanks to Orange Labs for the report.
2009-09-03 17:20:06 +02:00
Andreas Schneider
8344598910
Fix an integer overflow in buffer_get_data().
...
Thanks to Orange Labs for the report.
2009-09-03 17:11:42 +02:00
Andreas Schneider
16870abed7
Add more warnings to gcc.
2009-09-01 11:03:48 +02:00
Aris Adamantiadis
65850a1bad
Fix "void * ptr used in pointer arithmetic" warng
2009-08-29 19:04:53 +02:00
Aris Adamantiadis
1137f0d48c
Change SSH_LOG_RARE to SSH_LOG_PACKET in packet.c
2009-08-29 18:59:13 +02:00
Andreas Schneider
d9a50f04e7
Fix ssh_write_knownhost() if ~/.ssh doesn't exist.
2009-08-26 09:39:21 +02:00
Andreas Schneider
4aa7d73b43
Fix typo.
2009-08-25 15:23:28 +02:00
Andreas Schneider
3804e72e24
Fix linking on solaris.
...
libresolv and librt are required.
2009-08-25 15:07:29 +02:00
Andreas Schneider
b8508020e5
Link shared libraries with --as-needed by default.
2009-08-25 15:06:56 +02:00
Andreas Schneider
324be0eabd
Fix poll sturct, ISO C doesn't allow unnamed unions.
2009-08-25 14:16:41 +02:00
Andreas Schneider
cfe5f83cf8
Fix shadow compiler warning in sample code.
2009-08-25 13:59:40 +02:00
Andreas Schneider
a1ad0deb32
Set gcc to c99 standard and enable pedantic.
2009-08-25 13:58:30 +02:00
Andreas Schneider
7c575a2418
Fix typedef collisons on Solaris.
2009-08-25 13:54:46 +02:00
Aris Adamantiadis
47cac13c0a
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
2009-08-24 16:08:17 +02:00
Aris Adamantiadis
16d1ef8933
buffer initialization change
2009-08-24 16:07:45 +02:00
Andreas Schneider
b500d76929
Add Solaris search path for libraries.
2009-08-24 14:49:07 +02:00
Aris Adamantiadis
aef9471217
fix memleak through requests
2009-08-23 23:43:07 +02:00
Aris Adamantiadis
f3454d571e
ssh_scp_request_get_{filename,permissions,size}
2009-08-23 23:40:30 +02:00
Aris Adamantiadis
1df1f86f7e
added ssh_scp_read
2009-08-23 23:24:46 +02:00
Aris Adamantiadis
f9db9c5a9c
added ssh_scp_accept_request
2009-08-23 22:43:57 +02:00
Aris Adamantiadis
96bafeca4c
corrected errors
2009-08-23 22:40:15 +02:00
Aris Adamantiadis
626d8ec637
forgot to set up state
2009-08-23 22:38:29 +02:00
Aris Adamantiadis
f3b36af50e
added ssh_scp_deny_request
2009-08-23 22:36:32 +02:00
Aris Adamantiadis
385b640d1d
Implementation of ssh_scp_pull_request
...
Still needed: code in ssh_scp_init,
implementation of ssh_scp_read
ssh_scp_request_get_filename,
ssh_scp_request_get_size,
ssh_scp_request_get_mode,
ssh_scp_deny_request
ssh_scp_accept_request
!!
2009-08-23 22:04:51 +02:00
Aris Adamantiadis
d4bc6fa954
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
...
Conflicts:
include/libssh/priv.h
2009-08-23 16:41:29 +02:00
Aris Adamantiadis
8bae43876f
experimental callback system
2009-08-23 16:33:59 +02:00
Aris Adamantiadis
fbfea94559
Pending work
2009-08-23 16:29:31 +02:00