summaryrefslogtreecommitdiffstats
path: root/sample.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved samples into examples directoryAris Adamantiadis2009-10-091-669/+0
|
* Get rid of the options structure.Andreas Schneider2009-10-021-12/+11
|
* get rid of SSH_OPTIONSAris Adamantiadis2009-09-231-1/+1
|
* get rid of SSH_SESSIONAris Adamantiadis2009-09-231-7/+7
|
* Use new options interface in sample code.Andreas Schneider2009-09-221-2/+2
|
* Added support for ~/.ssh/config.Andreas Schneider2009-09-151-0/+3
|
* Fix shadow compiler warning in sample code.Andreas Schneider2009-08-251-4/+4
|
* Fix compile warnings.Andreas Schneider2009-08-171-22/+22
|
* Add sftp_extension_supported() function.Andreas Schneider2009-08-121-58/+60
|
* Implement an example for statvfs.Andreas Schneider2009-08-121-0/+65
|
* Add functions to get the extension count, name and data.Andreas Schneider2009-07-281-1/+11
|
* Fix a typo.Andreas Schneider2009-07-251-1/+1
|
* Add symlink and readlink test to sample.Andreas Schneider2009-07-251-0/+19
|
* Changes all CHANNEL * to ssh_channelAris Adamantiadis2009-07-241-5/+5
|
* Forgot sample* in previous BUFFER changeAris Adamantiadis2009-07-241-1/+1
|
* Fix ssh_write_knownhost() which always returned -1.Andreas Schneider2009-07-211-3/+5
| | | | | fwrite() return the the number of items written not the size of the buffer.
* Make the ssh_userauth_kbdint functions to get the prompts const.Andreas Schneider2009-07-211-1/+2
| | | | They shouldn't be modified or free'd by a user.
* Fix sol8 + ss11 compile errors.Andreas Schneider2009-07-201-1/+3
| | | | Thanks to tysonite@gmail.com.
* Fixed copyright noticesAris Adamantiadis2009-07-131-1/+1
|
* typo in sample.cAris Adamantiadis2009-07-131-1/+1
|
* Reflect the SSH_SERVER_NOT_KNOWN add-on in sampleAris Adamantiadis2009-07-121-0/+4
|
* fix stupid "use unallocated memory" code in sampleAris Adamantiadis2009-06-211-1/+1
| | | | it confused valgrind and wasted 2 precious hours of my life
* Modified the sftp test case so it creates 0700 filAris Adamantiadis2009-06-211-1/+1
|
* Remove unneeded printf.Andreas Schneider2009-06-191-1/+0
|
* Implement channel_read() as a POSIX like function.Andreas Schneider2009-05-041-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
* Add option to build with or without sftp support.Andreas Schneider2009-04-271-1/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix memleak in sample.Andreas Schneider2009-04-181-0/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@547 7dcaeef0-15fb-0310-b436-a5af3365683c
* Don't shadow global variable sftp.Andreas Schneider2009-04-051-9/+9
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@390 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_options_set_username().Andreas Schneider2009-04-021-2/+8
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@349 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_options_set_host().Andreas Schneider2009-04-021-1/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@347 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add a return value to ssh_userauth_kbdint_setanswer().Andreas Schneider2009-04-021-2/+6
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@341 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve the ssh_get_pubkey_hash() function.Andreas Schneider2009-04-021-5/+13
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@337 7dcaeef0-15fb-0310-b436-a5af3365683c
* Create a ssh_get_hexa function.Andreas Schneider2009-03-301-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
* Add a ssh_version function.Andreas Schneider2009-03-211-1/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@283 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix compile warnings.Andreas Schneider2009-03-181-2/+6
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@276 7dcaeef0-15fb-0310-b436-a5af3365683c
* Get rid of ssh_say in the sample ssh client.Andreas Schneider2009-03-121-14/+22
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@270 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings in client sample.Andreas Schneider2009-02-061-23/+33
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@232 7dcaeef0-15fb-0310-b436-a5af3365683c
* adding error status in samplesshAris Adamantiadis2009-02-041-0/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@229 7dcaeef0-15fb-0310-b436-a5af3365683c
* channel_get_exit_status()Aris Adamantiadis2009-02-031-1/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@228 7dcaeef0-15fb-0310-b436-a5af3365683c
* added logging for exit-statusAris Adamantiadis2009-02-031-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@227 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add a more generic auth callback function.Andreas Schneider2008-12-291-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
* Create POSIX like sftp functions.Andreas Schneider2008-12-221-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
* patches 0001-Save-the-last-error-and-provide-a-function-to-get-it.patch,Aris Adamantiadis2008-11-241-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
* fixed null pointer into options and ssh_set_error()Aris Adamantiadis2008-03-041-2/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@138 7dcaeef0-15fb-0310-b436-a5af3365683c
* fix bug #0000002 : in_socket_buffer and out_socket_buffer memleak +Aris Adamantiadis2008-03-031-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
* Add ssh_finalize to handle finalization of libssh and underlying cryptographicJean-Philippe Garcia Ballester2006-07-091-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
* nonblocking support in dh_handshake() from client.cAris Adamantiadis2005-11-301-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
* channel_select(). this function rocks !Aris Adamantiadis2005-10-251-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
* added the gcrypt patch (without gcrypt as default library).Aris Adamantiadis2005-10-041-1/+1
| | | | | | | still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
* 2 macosx patchesAris Adamantiadis2005-08-311-0/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@36 7dcaeef0-15fb-0310-b436-a5af3365683c