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
Andreas Schneider
6d5b36fb79
Add symlink and readlink test to sample.
2009-07-25 11:55:42 +02:00
Andreas Schneider
8ce6bd3459
Add sftp_readlink function.
2009-07-25 11:55:42 +02:00
Andreas Schneider
5b8338d115
Add sftp_symlink function.
2009-07-25 11:55:33 +02:00
Aris Adamantiadis
e73cbbe18c
Added a threading + sftp stress testcase
2009-07-24 22:52:10 +02:00
Aris Adamantiadis
69a01b3657
move all u32,u16,u8 and u64 declarations in priv.h
...
And fix all headers which need u32,u8,u64
2009-07-24 22:31:39 +02:00
Aris Adamantiadis
e406b81d34
Missed something in channel_select for CHANNEL
2009-07-24 22:24:10 +02:00
Aris Adamantiadis
fdc2751952
Make the SSH_SAFE_NAMESPACE flag active
2009-07-24 22:20:41 +02:00
Aris Adamantiadis
fa11083fcb
Change refs from AGENT * to ssh_agent
...
Fixes also a typo in ssh_agent declaration
2009-07-24 22:19:40 +02:00
Aris Adamantiadis
2bc8819e8f
Changes all CHANNEL * to ssh_channel
2009-07-24 22:15:33 +02:00
Aris Adamantiadis
23b6c95e04
Change PRIVATE_KEY * to ssh_private_key
2009-07-24 22:08:04 +02:00
Aris Adamantiadis
c041bcc6d9
Forgot sample* in previous BUFFER change
2009-07-24 22:03:36 +02:00
Aris Adamantiadis
fc5dd23afa
Changed all PUBLIC_KEY * to ssh_public_key
2009-07-24 22:02:32 +02:00
Aris Adamantiadis
91d0660cc3
Changed all occurences of BUFFER * to ssh_buffer
2009-07-24 21:56:11 +02:00
Aris Adamantiadis
fb5769b4be
You always forget SSH1 ...
2009-07-24 21:47:23 +02:00
Aris Adamantiadis
56ee212641
Change all occurences of STRING * to ssh_string
2009-07-24 21:45:41 +02:00
Aris Adamantiadis
8f3891e968
moved try_publickey_from_file in priv.h
...
Had nothing to do in libssh.h. 100% sure nobody
used it since one of the structure declaration
was not public.
2009-07-24 21:23:07 +02:00