1
1

1007 Коммитов

Автор SHA1 Сообщение Дата
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
Aris Adamantiadis
6a04b43a45 added ssh_scp_request_new,ssh_scp_request_struct 2009-08-23 15:23:48 +02:00
Aris Adamantiadis
049c62098c add ssh_scp_push_directory,ssh_scp_leave_directory
Not yet carefully tested
2009-08-23 14:57:03 +02:00
Aris Adamantiadis
6801959989 Use ssh_basename on ssh_scp_file_push'ed files 2009-08-23 14:28:38 +02:00
Andreas Schneider
8463d9d7c6 Improve header checks on windows. 2009-08-21 15:15:49 +02:00
Andreas Schneider
c497f057a0 Improve detection for required libraries on Solaris. 2009-08-21 15:15:18 +02:00
Andreas Schneider
fc0af0f0d8 Add openssl include dir on Solaris. 2009-08-21 14:54:24 +02:00
Andreas Schneider
330c2004a1 Make the functions public. 2009-08-21 10:17:58 +02:00
Andreas Schneider
0b10493e90 Added ssh_basename() and ssh_dirname(). 2009-08-21 10:16:36 +02:00
Andreas Schneider
d23e64fc52 Add a warning if wspiapi.h doesn't exist. 2009-08-20 12:32:35 +02:00
Andreas Schneider
fd83d69440 Improve the configure checks. 2009-08-20 11:50:49 +02:00