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
Andreas Schneider
291522772d
Fix SSH1 and stdint in SSH1 code.
2009-07-27 23:13:24 +02:00
milo
26d1ac325b
Fix potential memory corruption bug
2009-07-27 20:53:01 +02:00
milo
1311d03415
Fix typo orignator_port -> originator_port
2009-07-27 20:52:36 +02:00
Andreas Schneider
549fd32574
Fix compile errors in keyfiles.
2009-07-27 20:49:38 +02:00
Andreas Schneider
9f14bbd6ad
Remove double SSH2_MSG_USERAUTH_PK_OK.
2009-07-27 20:30:27 +02:00
milo
e8f7801540
Public key authentication server side
2009-07-27 20:27:07 +02:00
Andreas Schneider
cdde79418a
Add ssh_file_readaccess_ok to check read access on a file.
2009-07-27 14:20:32 +02:00
Andreas Schneider
9b97da65e6
Add a function to close the socket.
...
This fixes ssh_connect on Windows.
2009-07-27 14:19:06 +02:00
Andreas Schneider
1dcaebe1ce
Fix a typo.
2009-07-27 13:20:29 +02:00
Andreas Schneider
28b5d0f875
Switch completly to stdint types.
2009-07-25 23:19:41 +02:00
Aris Adamantiadis
ba217dec1c
First implementation of a scp transfer tool
...
Doesn't work yet. I've got a headache and debugging doesn't help.
2009-07-25 22:29:12 +02:00
Andreas Schneider
3b8c4dc750
Fix conflicting declarations of ssh_session and ssh_kbdint.
2009-07-25 20:26:56 +02:00
Andreas Schneider
5d1fa1be24
Fix return value of sftp_tell64().
2009-07-25 19:52:07 +02:00
Andreas Schneider
c8e82528fc
Update map file for ssh_clean_pubkey_hash;
2009-07-25 18:00:36 +02:00
Andreas Schneider
104e6d39ab
Add a sftp_tel64() function.
2009-07-25 17:55:58 +02:00
Andreas Schneider
3f778d9a31
Add ssh_clean_pubkey_hash() which is needed on Windows.
2009-07-25 17:52:00 +02:00
Aris Adamantiadis
a935ad1857
New example directory with the begining of a scp
2009-07-25 17:03:01 +02:00
Aris Adamantiadis
7abb3941c8
Bumped the version numbers to 0.4.0 in HEAD
2009-07-25 16:32:10 +02:00
Andreas Schneider
194880b869
Update map file.
2009-07-25 11:56:59 +02:00
Andreas Schneider
737f588b3b
Fix a typo.
2009-07-25 11:55:42 +02:00