Andreas Schneider
22b3122c6c
Use consistent return values for packet_translate().
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@456 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-14 08:55:33 +00:00
Andreas Schneider
38d86e7e17
Fix SSHv1 compile errors.
...
Thanks to Norbert Kiesel <nkiesel@tbdnetworks.com > for the patch.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@424 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-08 07:13:18 +00:00
Andreas Schneider
1e52650dbf
Fix typo.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@417 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-07 18:37:41 +00:00
Andreas Schneider
7c6f1be5ea
Add my copyright.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@416 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-07 15:11:24 +00:00
Andreas Schneider
f84585ea2f
Check for buffer_add_* return values in channel functions.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@415 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-07 15:10:47 +00:00
Andreas Schneider
aea8587586
Add return values and error checking to channel_default_bufferize().
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@414 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-07 14:10:45 +00:00
Andreas Schneider
8d3a43db7a
Improve channel_new().
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@413 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-07 14:02:24 +00:00
Andreas Schneider
139eb4696c
Fix build warnings, mostly const chars.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@394 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-05 09:41:54 +00:00
Andreas Schneider
226e48b4b7
Improve channel_free().
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@388 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-04 14:27:59 +00:00
Andreas Schneider
186667724a
Fix build warnings.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@315 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-01 10:22:14 +00:00
Andreas Schneider
f80efcc260
Add checks for memory errors in channel functions.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@314 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-04-01 10:14:26 +00:00
Andreas Schneider
3441e77ddc
Normalize the license in all files and add vim tab instructions.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@305 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-29 20:19:18 +00:00
Andreas Schneider
08e2408896
Fix build warnings.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@273 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-14 15:14:18 +00:00
Andreas Schneider
1486d844e7
Replace ssh_say with ssh_log.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@260 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-03-11 10:22:28 +00:00
Aris Adamantiadis
53226f98f2
exit-status should be -1 when undefined
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@230 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-04 19:21:20 +00:00
Aris Adamantiadis
ac3d66ac69
channel_get_exit_status()
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@228 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-03 18:07:26 +00:00
Aris Adamantiadis
903e22cd11
added logging for exit-status
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@227 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-03 17:54:27 +00:00
Andreas Schneider
7250e03f97
Fix build warnings in channel code.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@210 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-02 15:35:39 +00:00
Aris Adamantiadis
64e73b8d8a
doxygen fixes. Mostly typos and some comments.
...
sftp must be fully documented !
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@187 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-11-04 21:59:12 +00:00
Aris Adamantiadis
5758188467
fix channel performance by changing the window len.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@179 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-30 13:10:26 +00:00
Aris Adamantiadis
b8dac18d0e
fixed a problem when a channel blocking read was bigger than size of buffer
...
+ window
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@178 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-27 16:56:24 +00:00
Aris Adamantiadis
372d1e727b
fixed a bug in the channel windows.
...
Fixed the window growing on packet receive
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@175 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-17 01:52:11 +00:00
Aris Adamantiadis
8ce42c279e
displaced the data_to_* into socket
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@171 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-16 23:55:12 +00:00
Aris Adamantiadis
77603dbc5a
Big changes :
...
refactoring of the socket class. Now the buffering happens in the socket class.
enhanced the logging system. Cleaned up some debugging messages.
Verified the working with ssh-1.
If this cleanup introduced bugs (it did but corrected the found ones) at least, they will be easier to find
also added the (c) and fixed dates for updated files
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@169 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-16 23:02:49 +00:00
Aris Adamantiadis
fe51f9c766
big changes :
...
Some documentation, and a new logging system.
some work must be done to get rid of the infamous ssh_say()
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@166 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-06-12 20:14:17 +00:00
Aris Adamantiadis
41475a2a1f
workaround for the bug #14
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@162 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-05-26 20:14:59 +00:00
Aris Adamantiadis
2cf6369113
Doxygen changes
...
Modified the makefile so the ln -s never fails.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@157 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-05-12 21:51:13 +00:00
Aris Adamantiadis
f084f6e67c
fixed a bug in channel_poll where channel_poll() would return 0 even
...
when data was available.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@155 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-05-08 22:12:21 +00:00
Aris Adamantiadis
68a1a4cc21
fixed the netdb problem ?
...
i don't understand, removing the #include <netdb.h> didn't add misses
for ntohl.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@148 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-12 01:27:21 +00:00
Aris Adamantiadis
77a88811f1
change doxygen doc for channel_poll
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@145 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-07 03:07:39 +00:00
Aris Adamantiadis
29997022c8
first part of win32 patches
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@141 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-07 01:45:05 +00:00
Aris Adamantiadis
077dd81fcc
added the socket class and created wrappers
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@137 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-04 00:44:02 +00:00
Aris Adamantiadis
21c547689a
Rodolphe Rocca fixes
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@135 7dcaeef0-15fb-0310-b436-a5af3365683c
2008-03-03 15:42:25 +00:00
Aris Adamantiadis
4442e0e262
good work tonight. Made documentation for authentication, channels, buffers, errors
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@80 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-12 00:14:55 +00:00
Aris Adamantiadis
7b416e5c52
resolved the channel hangs on exit issue (moved EOF to read events and removed it from exceptions).
...
resolved stupid cute & paste error in init_md5()
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@47 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 19:13:57 +00:00
Aris Adamantiadis
c53b6b907c
resolved the infinite loop on exit (thanks giga for the hint).
...
I resolved a memory alloc problem into hmac_init (same kind that the one of md5_init).
It's still saying there is a memory corruption. Since the memory corruption happens before it is found (in malloc()), I'll have to run valgrind to locate it.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@46 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 16:59:16 +00:00
Aris Adamantiadis
0f67ff89d9
patches from Norbert merged in. I have made some little changes here and there.
...
It still doesn't compile because of the O1 thing passed to ld.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@41 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 12:06:11 +00:00
Aris Adamantiadis
d86f001754
channel_select(). this function rocks !
...
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-25 23:02:25 +00:00
Aris Adamantiadis
5f7c84f900
added the gcrypt patch (without gcrypt as default library).
...
still needs tests.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-04 22:11:19 +00:00
Aris Adamantiadis
1b20b8df85
fixed bug in sample that made the client running in infinite loop.
...
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-31 02:20:36 +00:00
Aris Adamantiadis
96a99bab78
The kex works, the client authentifies (with password) then it's possible to 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-08-10 13:22:52 +00:00
Aris Adamantiadis
c65f56aefa
first import
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@1 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-07-05 01:21:44 +00:00