Andreas Schneider
2dc3b5c675
Add sftp_extension_supported() function.
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
Aris Adamantiadis
86418bfbbe
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
2009-08-12 00:04:30 +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
9b13390ad0
Use gcc visibility attribute to get rid of the map file.
2009-08-11 17:10:00 +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
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
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
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
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
766bae9d76
Fix build with MSVC.
2009-07-30 10:45:58 +02:00
Andreas Schneider
bccb9b16a5
Move channel_write_stderr to server.c.
2009-07-29 23:21:01 +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
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
milo
1311d03415
Fix typo orignator_port -> originator_port
2009-07-27 20:52:36 +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
28b5d0f875
Switch completly to stdint types.
2009-07-25 23:19:41 +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
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
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
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
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
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
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
Aris Adamantiadis
958a775afa
replacing keys_struct with ssh_keys_struct
2009-07-24 21:18:15 +02:00
Aris Adamantiadis
e776dc16c9
Fixed namespace problem in public structures
...
changed
struct string_struct to ssh_string_struct
buffer_struct to ssh_buffer_struct
and so on.
Should not break apps using the caps version of these
2009-07-24 20:49:46 +02:00
Andreas Schneider
41a8fb5810
Make the ssh_userauth_kbdint functions to get the prompts const.
...
They shouldn't be modified or free'd by a user.
2009-07-21 10:34:21 +02:00
Andreas Schneider
8843d8b68d
Fix sol8 + ss11 compile errors.
...
Thanks to tysonite@gmail.com .
2009-07-20 22:50:45 +02:00
Aris Adamantiadis
103292dd99
Fixed copyright notices
2009-07-13 00:23:42 +02:00
Aris Adamantiadis
d5b6f6cc37
Added return code SSH_SERVER_FILE_NOT_FOUND
...
This error is returned by ssh_is_server_known when known_hosts
file does not exist and gives more action to the developer.
2009-07-12 23:13:21 +02:00
Aris Adamantiadis
052073c36d
Set correct hint when connecting to an IP address
...
libssh now uses a regular expression against destination
hostnames to match numerical IP addresses and set the
appropriate hint.
Patches also add init and finalize code to compile the regexp
2009-07-12 23:01:43 +02:00
Aris Adamantiadis
60c778ad7f
fix int -> socket_t in SSH_POLL
2009-07-04 14:16:13 +02:00
Aris Adamantiadis
71100dadcd
Temporary move of ssh_poll_* back to priv.h
...
We'll see later what needs to be put back in public
functions
2009-07-04 13:52:34 +02:00