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
Andreas Schneider
461e46b814
Improve checks for Windows version and wspiapi.h.
2009-08-20 11:43:37 +02:00
Andreas Schneider
4f95146151
Fix build warnings on Windows.
2009-08-20 10:50:02 +02:00
Andreas Schneider
3eb21053d0
Add a portable define to print size_t.
2009-08-20 10:49:27 +02:00
Andreas Schneider
92db6f8c6d
Remove DEBUG_CRYPTO variable.
...
You can enable it with cmake -DWITH_DEBUG_CRYPTO:BOOL=TRUE.
2009-08-20 10:44:31 +02:00
Andreas Schneider
0fd0c6d293
Don't shadow global vairables.
2009-08-19 10:52:30 +02:00
Andreas Schneider
b49973f17b
Fix compile warnings.
2009-08-17 08:56:43 +02:00
Andreas Schneider
978d265da8
Build channel_accept() on Windows too.
2009-08-16 19:01:13 +02:00
Vic Lee
cf6dddce34
Fix double free pointer crash in dsa_public_to_string
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-16 14:40:19 +02:00
Vic Lee
2c4bbe51dd
Fix return code from packet_wait in channel_request
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-16 14:40:18 +02:00
Andreas Schneider
756d441f8c
Fix channel_accept_x11 on Windows.
2009-08-16 14:40:18 +02:00
Vic Lee
db6aa88bc4
Add forward listening feature
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-16 14:40:18 +02:00
Aris Adamantiadis
e707af1cd7
Fix channel_get_exit_status bug reported by VicLee
...
It would return -1 if the channel received the exit status
and the close message at same time.
2009-08-16 13:51:55 +02:00
Aris Adamantiadis
380a70d650
fix ssh_finalize which didn't clear the flag
2009-08-13 23:26:17 +02:00
Andreas Schneider
2dc3b5c675
Add sftp_extension_supported() function.
2009-08-12 17:13:42 +02:00
Andreas Schneider
63011c29a0
Implement an example for statvfs.
2009-08-12 17:13:42 +02:00
Andreas Schneider
e68c3b09a6
Add support for OpenSSH's statvfs and fstatvfs calls.
2009-08-12 17:13:42 +02:00
Andreas Schneider
0793bf5aa6
Set version number to 0.4.0.
2009-08-12 17:13:04 +02:00
Andreas Schneider
d9b7e4cb7a
Fix compilation with visibility flags with mingw.
...
Thanks to Patrick Spendrin.
2009-08-12 14:05:17 +02:00
Andreas Schneider
8e6ab1809f
Enable the debug calltrace by default.
2009-08-12 10:08:20 +02:00
Aris Adamantiadis
86418bfbbe
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
2009-08-12 00:04:30 +02:00
Aris Adamantiadis
1e1c13f756
some tweaks of scp example
2009-08-12 00:04:04 +02:00
Aris Adamantiadis
8dae851836
Make the calltrace logging optional
2009-08-12 00:03:36 +02:00
Andreas Schneider
db284d60b9
Fix static build.
...
If you want to link against the static library you have to define
LIBSSH_STATIC and link against ssh_static.
gcc -static -DLIBSSH_STATIC -lssh_static foo.c -o foo
2009-08-11 18:16:43 +02:00
Andreas Schneider
bfc6c7e606
Remove the map file from the sources.
2009-08-11 17:11:44 +02:00
Andreas Schneider
9b13390ad0
Use gcc visibility attribute to get rid of the map file.
2009-08-11 17:10:00 +02:00
Andreas Schneider
81fe4299f7
Fix linking of the static library on Windows.
2009-08-11 16:12:53 +02:00
Andreas Schneider
5e4bc6ec79
Fix compilation with MSVC and use declspec to export functions.
...
Thanks to Patrick Spendrin <ps_ml@gmx.de> for all the MSVC fixes.
2009-08-11 15:38:49 +02:00
Andreas Schneider
f3612879a8
Remove InstallRequiredSystemLibraries from CPack.
2009-08-11 15:37:52 +02:00
Andreas Schneider
57088c4375
Fix libssh build and installation on MSVC.
2009-08-11 15:37:10 +02:00
Andreas Schneider
011ab7c8fe
Suppress warning about "deprecated" functions in MSVC.
2009-08-11 15:36:37 +02:00
Aris Adamantiadis
e4422d6605
Fix memory leak introduced by previous bugfix
2009-08-11 13:15:23 +02:00
Andreas Schneider
14e1d015ee
Fix uint8_t.
2009-08-11 09:41:52 +02:00
Andreas Schneider
3da1c17acb
Add a NULL check for strdup memory allocation.
2009-08-11 09:41:07 +02:00
Aris Adamantiadis
7e9f0803c5
Latest scp code
...
The sample is now able to scp a file
2009-08-10 22:59:35 +02:00
Aris Adamantiadis
f989452b3e
Fixed stupid "can't parse known host key" bug
...
due to a dangling \n in the base64 ...
2009-08-10 22:50:16 +02:00
Aris Adamantiadis
a2780d1dd4
I really really broke it
...
excuse me !
2009-08-10 14:34:04 +02:00
Aris Adamantiadis
ddca45804b
oops I broke libssh.map
2009-08-10 14:32:50 +02:00
Aris Adamantiadis
f92e12c7b0
ssh_scp_push_file and ssh_scp_write
...
still needs tests
2009-08-09 22:51:03 +02:00
Aris Adamantiadis
e4da8b99fe
Initial scp implementation in source tree
2009-08-09 02:01:54 +02:00
Aris Adamantiadis
b993579079
Got the scp sample to work
...
Problem was that the terminal was not needed, and some nul bytes were to be read.
2009-08-09 00:25:09 +02:00