1
1
Граф коммитов

976 Коммитов

Автор SHA1 Сообщение Дата
Jean-Philippe Garcia Ballester
6a655edebd include/libssh/server.h: Remove struct definitions
include/libssh/priv.h: Add struct definitions that previously were in include/libssh/server.h
libssh/server.c: Include libssh/priv.h



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@109 7dcaeef0-15fb-0310-b436-a5af3365683c
2007-02-07 12:32:45 +00:00
Aris Adamantiadis
94d6f39386 trunk to 0.2
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@104 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-12-26 21:18:15 +00:00
Aris Adamantiadis
ef5113cc57 -rc release
Ipv6 patch from Laurent Bigonville. When the ipv6 targets are 
unreachable, it tries all possible targets from the getaddrinfo list.

Norbert: does it break anything ? it works for me but I didn't test it 
extensively


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@99 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-12-15 12:02:05 +00:00
Aris Adamantiadis
24aeed5d1f doxygen documentation for option module
added ssh_finalize() into libssh.h


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@78 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-06 23:57:50 +00:00
Aris Adamantiadis
44b5470443 at least I get a working doxygen documentation.
I am going to make the whole documentation as doxygen files.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@77 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-06 22:58:58 +00:00
Aris Adamantiadis
3edfd105b3 nonblocking support in dh_handshake() from client.c
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-11-30 21:23:12 +00:00
Jean-Philippe Garcia Ballester
ac4fd09177 Added support for known_hosts format version 1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@51 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-25 09:31:33 +00:00
Aris Adamantiadis
1847fb2373 added bases for nonblocking packet sending and receiving. packet_send
and packet_read may return SSH_AGAIN if the session is nonblocking and 
there is not enough data to be read.
I also added a socket buffering through session->in_socket_buffer. It is 
more low-level than the packet buffer.
I should rename in_buffer with in_packet_buffer.
There is still work to do with the socket status, (opened, error, 
closed, ...) and much more work to extend the nonblocking to session 
opening, messages sending and such.
I find the switch(session->packet_state) solution very nice (especially 
when the nonblocking function may have 10 differents states, like in a 
connection.)


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@49 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-22 23:15:31 +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
9a2683f183 added Jean-Philippe's patch for libtools. it doesn't compile on my computer.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@40 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-25 23:11:41 +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
a8b5d63e14 write support
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@30 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 23:34:32 +00:00
Aris Adamantiadis
b81c66ee8f pam samples files to put into /etc/pam.d
ssh_silent_disconnect() and server forking. I still have to add a -D command line to avoid the forking.
password auth works, but there is no uid change yet. I'll have to make the configuration stuff really being respected by the server. (like keys, ports, users, ...)


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@23 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 00:55:27 +00:00
Aris Adamantiadis
0de0dca16d more ACL on directories. Not already enabled.
First Pam code. looks like it works more or less.
it needs a file in /etc/pam.d to be activated


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@22 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-28 23:56:01 +00:00
Aris Adamantiadis
c76e6e496d file opening/reading works :).
I fixed the "longname" part of a stat (which makes the output for ls into openssh's sftp)
it's possible to browse and open abritrary files. but no ACL yet


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@19 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 16:04:49 +00:00
Aris Adamantiadis
e2bdc2f66c sftp server implementation :)
at this time, basic support of opendir, readdir, lstat, etc.
just enough to "sftp" in and type ls.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@16 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 00:25:01 +00:00
Aris Adamantiadis
35221f967e fixed server segfaults on exit (double frees)
sftp_server_init()


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@15 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-25 13:44:26 +00:00
Aris Adamantiadis
f23685f92b stdint.patch, debug_output.patch, ssh_12_select.patch,
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-19 11:12:29 +00:00
Aris Adamantiadis
56602ca031 More work on the server side and sftp.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@9 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-18 10:08:20 +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
5c26ae7354 server kex done :)
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@6 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-07 10:48:08 +00:00
Aris Adamantiadis
636432e475 sample sshd server accepts a client and sends a banner.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@4 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-07-06 14:35:03 +00:00
Aris Adamantiadis
55846a4c7b Beginning of the SSH_BIND implementation
hack for errors handling so it supports an Object-oriented kind of errors (generic for ssh_bind and ssh_session data types)



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@3 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-07-05 21:10:50 +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