aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2009-08-10Latest scp codeAris Adamantiadis1-0/+9
The sample is now able to scp a file
2009-08-09ssh_scp_push_file and ssh_scp_writeAris Adamantiadis2-1/+4
still needs tests
2009-08-09Initial scp implementation in source treeAris Adamantiadis2-0/+21
2009-08-05Remove ssh_fd_poll which is gone.Andreas Schneider1-1/+0
2009-08-01Move extension structure to the end.Andreas Schneider1-1/+1
2009-07-31Fixed libssh compilation without server support.Andreas Schneider2-42/+41
2009-07-31Add x11 forwarding support for ssh clientVic Lee1-0/+3
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-30Fix build with MSVC.Andreas Schneider2-4/+29
2009-07-29Move channel_write_stderr to server.c.Andreas Schneider3-1/+4
2009-07-29Add channel_write_stderr prototype to the right header file.Andreas Schneider2-2/+1
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-07-29Fleshed out server interfacePreston A. Elder1-8/+27
- 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-28Add functions to get the extension count, name and data.Andreas Schneider1-0/+34
2009-07-28Add support to read and store sftp extensions.Andreas Schneider1-0/+3
2009-07-28Check for OpenSSH and implement sftp_symlink correct.Andreas Schneider2-0/+2
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-27Fix typo orignator_port -> originator_portmilo1-1/+1
2009-07-27Remove double SSH2_MSG_USERAUTH_PK_OK.Andreas Schneider1-1/+0
2009-07-27Public key authentication server sidemilo3-0/+8
2009-07-25Switch completly to stdint types.Andreas Schneider1-52/+46
2009-07-25Fix conflicting declarations of ssh_session and ssh_kbdint.Andreas Schneider3-16/+16
2009-07-25Fix return value of sftp_tell64().Andreas Schneider1-1/+1
2009-07-25Add a sftp_tel64() function.Andreas Schneider1-0/+11
2009-07-25Add ssh_clean_pubkey_hash() which is needed on Windows.Andreas Schneider1-0/+1
2009-07-25Add sftp_readlink function.Andreas Schneider1-0/+11
2009-07-25Add sftp_symlink function.Andreas Schneider1-0/+13
2009-07-24move all u32,u16,u8 and u64 declarations in priv.hAris Adamantiadis4-47/+47
And fix all headers which need u32,u8,u64
2009-07-24Make the SSH_SAFE_NAMESPACE flag activeAris Adamantiadis1-1/+1
2009-07-24Change refs from AGENT * to ssh_agentAris Adamantiadis2-4/+3
Fixes also a typo in ssh_agent declaration
2009-07-24Changes all CHANNEL * to ssh_channelAris Adamantiadis4-43/+43
2009-07-24Change PRIVATE_KEY * to ssh_private_keyAris Adamantiadis2-13/+13
2009-07-24Changed all PUBLIC_KEY * to ssh_public_keyAris Adamantiadis2-10/+10
2009-07-24Changed all occurences of BUFFER * to ssh_bufferAris Adamantiadis3-47/+47
2009-07-24Change all occurences of STRING * to ssh_stringAris Adamantiadis3-53/+68
2009-07-24moved try_publickey_from_file in priv.hAris Adamantiadis2-4/+3
Had nothing to do in libssh.h. 100% sure nobody used it since one of the structure declaration was not public.
2009-07-24replacing keys_struct with ssh_keys_structAris Adamantiadis2-3/+3
2009-07-24Fixed namespace problem in public structuresAris Adamantiadis2-22/+22
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-21Make the ssh_userauth_kbdint functions to get the prompts const.Andreas Schneider1-3/+3
They shouldn't be modified or free'd by a user.
2009-07-20Fix sol8 + ss11 compile errors.Andreas Schneider1-1/+11
Thanks to tysonite@gmail.com.
2009-07-13Fixed copyright noticesAris Adamantiadis2-2/+2
2009-07-12Added return code SSH_SERVER_FILE_NOT_FOUNDAris Adamantiadis1-0/+1
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-12Set correct hint when connecting to an IP addressAris Adamantiadis1-0/+3
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-04fix int -> socket_t in SSH_POLLAris Adamantiadis1-1/+1
2009-07-04Temporary move of ssh_poll_* back to priv.hAris Adamantiadis2-36/+33
We'll see later what needs to be put back in public functions
2009-07-04Move doxygen tags into C filesAris Adamantiadis1-122/+1
2009-07-04Put back the poll declarations into priv.hAris Adamantiadis2-7/+9
That are, poll constants.
2009-07-03Add a generic way to handle sockets asynchronously.Aleksandar Kanchev2-8/+163
It's based on poll objects, each of which store a socket, it's events and a callback, which gets called whenever an event is set. The poll objects are attached to a poll context, which should be allocated on per thread basis. Polling the poll context will poll all the attached poll objects and call their callbacks (handlers) if any of the socket events are set. This should be done within the main loop of an application. This is intended as a ground work for making libssh asynchronous. Signed-off-by: Aleksandar Kanchev <aleksandar.kanchev@googlemail.com>
2009-06-19Verify memory return codes in ssh_list functionsAris Adamantiadis1-1/+1
2009-06-18added ssh_message_callback support.Aris Adamantiadis2-3/+8
Not fully working yet. User can set his ssh_message_callback, and the function ssh_execute_message_callbacks will call them when appropriate. Messages are correctly stacked (in packet_parse) but no call to ssh_execute_callbacks exists yet.
2009-06-18Created general singlelinked list implementationAris Adamantiadis1-0/+35
2009-06-17Begin of asynchronous SSH message parsingAris Adamantiadis1-0/+4
2009-06-17ssh_message_retrieve + memoryleak fixed in ssh_message_freeAris Adamantiadis2-0/+11
ssh_message_retrieve parses a specific SSH message and returns a pointer to it. Hacked ssh_message_get to use it. This is the first step to have asynchronous ssh messages callbacks.