aboutsummaryrefslogtreecommitdiff
path: root/sample.c
AgeCommit message (Collapse)AuthorFilesLines
2009-05-04Implement channel_read() as a POSIX like function.Andreas Schneider1-2/+2
Create channel_read_buffer() to have the old version still available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@700 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-27Add option to build with or without sftp support.Andreas Schneider1-1/+3
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-18Fix memleak in sample.Andreas Schneider1-0/+2
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@547 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-05Don't shadow global variable sftp.Andreas Schneider1-9/+9
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@390 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-02Improve ssh_options_set_username().Andreas Schneider1-2/+8
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@349 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-02Improve ssh_options_set_host().Andreas Schneider1-1/+4
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@347 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-02Add a return value to ssh_userauth_kbdint_setanswer().Andreas Schneider1-2/+6
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@341 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-02Improve the ssh_get_pubkey_hash() function.Andreas Schneider1-5/+13
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@337 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-30Create a ssh_get_hexa function.Andreas Schneider1-2/+5
This function converts a buffer into a colon separated hex string. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@308 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-21Add a ssh_version function.Andreas Schneider1-1/+3
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@283 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-18Fix compile warnings.Andreas Schneider1-2/+6
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@276 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-12Get rid of ssh_say in the sample ssh client.Andreas Schneider1-14/+22
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@270 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-06Fix build warnings in client sample.Andreas Schneider1-23/+33
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@232 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-04adding error status in samplesshAris Adamantiadis1-0/+2
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@229 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-03channel_get_exit_status()Aris Adamantiadis1-1/+4
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@228 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-03added logging for exit-statusAris Adamantiadis1-1/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@227 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-12-29Add a more generic auth callback function.Andreas Schneider1-1/+1
You should be able to obtain passwords or usernames with this function. Signed-off-by: Andreas Schneider <mail@cynapses.org> git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@198 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-12-22Create POSIX like sftp functions.Andreas Schneider1-9/+9
This breaks the API and will be libssh 0.3. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@195 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-11-24patches 0001-Save-the-last-error-and-provide-a-function-to-get-it.patch,Aris Adamantiadis1-1/+14
0002-Use-const-whereever-it-makes-sense.patch, 0003-Implement-function-to-retrieve-userauth-possabilitie.patch from Andreas Schneider git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@191 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-04fixed null pointer into options and ssh_set_error()Aris Adamantiadis1-2/+4
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@138 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-03fix bug #0000002 : in_socket_buffer and out_socket_buffer memleak +Aris Adamantiadis1-10/+9
"g" and "p" O(1) memleak. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@134 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-07-09Add ssh_finalize to handle finalization of libssh and underlying cryptographicJean-Philippe Garcia Ballester1-0/+8
library. Add corresponding paragraph in API draft. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@75 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-30nonblocking support in dh_handshake() from client.cAris Adamantiadis1-2/+7
some packet nonblocking fixes. reenable sftp from the sample client. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@52 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-25channel_select(). this function rocks !Aris Adamantiadis1-21/+39
I adapted the sample.c file. the select_loop function is bloated and fails to demonstrate how libssh is simple to handle... it looks to run at first try. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@39 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-04added the gcrypt patch (without gcrypt as default library).Aris Adamantiadis1-1/+1
still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-312 macosx patchesAris Adamantiadis1-0/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@36 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31fixed bug in sample that made the client running in infinite loop.Aris Adamantiadis1-3/+7
hunted a bug in channel_poll that returned 0 when EOF. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@35 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31cfmakeraw patch for configure.inAris Adamantiadis1-1/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@32 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-19stdint.patch, debug_output.patch, ssh_12_select.patch,Aris Adamantiadis1-0/+14
solaris_7.patch and args_in_decl.patch from Norbert. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@12 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-10The kex works, the client authentifies (with password) then it's possible to ↵Aris Adamantiadis1-7/+15
choose a subsystem. The channels don't completely work. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@7 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-07-05first importAris Adamantiadis1-0/+434
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@1 7dcaeef0-15fb-0310-b436-a5af3365683c