1
1

1087 Коммитов

Автор SHA1 Сообщение Дата
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
Aris Adamantiadis
807cb635c1 Fixed channel_poll broken when delayed EOF recvd
Previous code returned SSH_EOF even if data was left in buffer
2009-08-09 00:20:42 +02:00
milo
3ad559cc23 Fix buffer overflow in generate_cookie()
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-07 12:49:55 +02:00
milo
ec02ce0ec2 Fix a typo: CHANNEL * -> ssh_channel
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-07 11:40:07 +02:00
milo
1b9676a0cc Fix possible memory corruption (#14)
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-06 10:29:36 +02:00
Andreas Schneider
f4b3ef7604 Remove ssh_fd_poll from map file. 2009-08-05 18:20:32 +02:00
Andreas Schneider
e9974c2053 Remove ssh_fd_poll which is gone. 2009-08-05 17:38:43 +02:00
Andreas Schneider
de532ee550 Move extension structure to the end. 2009-08-01 11:15:53 +02:00
Andreas Schneider
67b44e4417 Don't use the map file if the build type is debug. 2009-08-01 11:05:19 +02:00
Andreas Schneider
83f65031c0 Fixed libssh compilation without server support. 2009-07-31 12:31:46 +02:00
Vic Lee
63053541e6 Add x11 forwarding support for ssh client
Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-31 11:17:51 +02:00
Andreas Schneider
a040e2e3db Cleanup the map file and oder it alphabetically. 2009-07-30 12:02:05 +02:00
Andreas Schneider
678d445075 Export public functions on Windows. 2009-07-30 12:01:39 +02:00
Andreas Schneider
3558b9e6b6 Fix Windows build. 2009-07-30 11:40:28 +02:00
Andreas Schneider
590c3e2f51 Add strange names for Windows. 2009-07-30 11:38:38 +02:00
Andreas Schneider
28a7343320 Fix project name in examples. 2009-07-30 11:11:00 +02:00
Andreas Schneider
766bae9d76 Fix build with MSVC. 2009-07-30 10:45:58 +02:00
Andreas Schneider
94a57df0c9 Compile the library with the map file again. 2009-07-30 00:46:57 +02:00
Andreas Schneider
5f93742c5e Add missing functions to map file. 2009-07-30 00:46:45 +02:00
Andreas Schneider
9457c770df Change the library so version. 2009-07-30 00:46:07 +02:00
Andreas Schneider
bccb9b16a5 Move channel_write_stderr to server.c. 2009-07-29 23:21:01 +02:00
Andreas Schneider
1355029ec9 Fix indent. 2009-07-29 23:02:12 +02:00
Andreas Schneider
5dc8d6069d Update map file and introduce a new version.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-29 18:42:16 +02:00
Andreas Schneider
60837b1538 Add channel_write_stderr prototype to the right header file.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-29 18:42:10 +02:00
Andreas Schneider
debfd1f3a3 Fix build errors in new messages functions.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-29 18:42:05 +02:00
Preston A. Elder
4f70cc13e2 Fleshed out server interface
- Enables channel_request_open types of DIRECT_TCPIP, FORWARDED_TCPIP and X11 (ie. implemented the handling of those channel_request_open types).
- Adds functions to retrieve the extra information relating to channel_request_open messages and channel_request messages.
- Adds a channel_write_stderr method (obviously for writing to the STDERR channel from server side) - well, technically just converted the exiting channel_write to take an extra argument and created two wrapper functions.
- Actually does the invoking of message_handle() from channel_recv_request.
- Implemented the handling of the window-change and env channel_requests.
- Implemented a few functions in server.h that were declared but not defined (eg. ssh_message_channel_request_channel).

Signed-off-by: Preston A. Elder <prez@neuromancy.net>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-29 18:41:48 +02:00
Andreas Schneider
b4111c5c18 Add functions to get the extension count, name and data. 2009-07-28 14:13:22 +02:00
Andreas Schneider
b9b7174d85 Add support to read and store sftp extensions. 2009-07-28 13:25:35 +02:00
Andreas Schneider
69ceaae9a9 Check for OpenSSH and implement sftp_symlink correct.
When OpenSSH's sftp-server was implemented, the order of the arguments
to the SSH_FXP_SYMLINK method was inadvertently reversed. Unfortunately,
the reversal was not noticed until the server was widely deployed.
Since fixing this to follow the specification would cause
incompatibility, the current order was retained.
2009-07-28 13:25:26 +02:00
Andreas Schneider
1abdb28995 Fix SSH1 compilation. 2009-07-27 23:17:35 +02:00
Andreas Schneider
81dab99afc Fix stdint type. 2009-07-27 23:14:04 +02:00